Обсуждение: [COMMITTERS] pgsql: Improve comments for execExpr.c's handling of FieldStoresubexpr

Поиск
Список
Период
Сортировка

[COMMITTERS] pgsql: Improve comments for execExpr.c's handling of FieldStoresubexpr

От
Tom Lane
Дата:
Improve comments for execExpr.c's handling of FieldStore subexpressions.

Given this code's general eagerness to use subexpressions' output variables
as temporary workspace, it's not exactly clear that it is safe for
FieldStore to tell a newval subexpression that it can write into the same
variable that is being supplied as a potential input.  Document the chain
of assumptions needed for that to be safe.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/de2af6e001a3d6aeb2a10a802e73af8c7d1d3405

Modified Files
--------------
src/backend/executor/execExpr.c | 12 ++++++++++++
1 file changed, 12 insertions(+)