pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Improve comments for execExpr.c's isAssignmentIndirectionExpr().
2+ messages / 1 participants
[nested] [flat]

* pgsql: Improve comments for execExpr.c's isAssignmentIndirectionExpr().
@ 2017-07-15 18:03  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2017-07-15 18:03 UTC (permalink / raw)
  To: pgsql-committers

Improve comments for execExpr.c's isAssignmentIndirectionExpr().

I got confused about why this function doesn't need to recursively
search the expression tree for a CaseTestExpr node.  After figuring
that out, add a comment to save the next person some time.

Branch
------
master

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

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


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Improve comments for execExpr.c's handling of FieldStore subexpr
@ 2017-07-15 20:57  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2017-07-15 20:57 UTC (permalink / raw)
  To: pgsql-committers

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(+)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2017-07-15 20:57 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-07-15 18:03 pgsql: Improve comments for execExpr.c's isAssignmentIndirectionExpr(). Tom Lane <tgl@sss.pgh.pa.us>
2017-07-15 20:57 pgsql: Improve comments for execExpr.c's handling of FieldStore subexpr Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox