Improve comments for execExpr.c's handling of FieldStore subexpressions.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: de2af6e001a3d6aeb2a10a802e73af8c7d1d3405
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2017-07-15T20:57:43Z
Releases: 10.0
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.

Files

PathChange+/−
src/backend/executor/execExpr.c modified +12 −0