Re: Changed SRF in targetlist handling
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: pgsql-hackers@postgresql.org
Date: 2016-08-22T20:20:58Z
Lists: pgsql-hackers
Andres Freund <andres@anarazel.de> writes: > On 2016-08-17 17:41:28 -0700, Andres Freund wrote: >> Tom, do you think this is roughly going in the right direction? I've not had time to look at this patch, I'm afraid. If you still want me to, I can make time in a day or so. > I'm working on these. Atm ExecMakeTableFunctionResult() resides in > execQual.c - I'm inlining it into nodeFunctionscan.c now, because > there's no other callers, and having it separate seems to bring no > benefit. > Please speak soon up if you disagree. I think ExecMakeTableFunctionResult was placed in execQual.c because it seemed to belong there alongside the support for SRFs in tlists. If that's going away then there's no good reason not to move the logic to where it's used. regards, tom lane
Commits
-
Remove obsoleted code relating to targetlist SRF evaluation.
- ea15e18677fc 10.0 landed
-
Doc: improve documentation of new SRF-in-tlist behavior.
- f13a1277aa2d 10.0 landed
-
Move targetlist SRF handling from expression evaluation to new executor node.
- 69f4b9c85f16 10.0 landed
-
Don't split up SRFs when choosing to postpone SELECT output expressions.
- d543170f2fdd 9.6.0 cited