mirror of
https://github.com/postgres/postgres.git
synced 2025-07-24 14:22:24 +03:00
Fix an oversight in two different recent patches: nodes that support SRFs
in their targetlists had better reset ps_TupFromTlist during ReScan calls. There's no need to back-patch here since nodeAgg and nodeGroup didn't even pretend to support SRFs in prior releases.
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/executor/nodeCtescan.c,v 1.1 2008/10/04 21:56:53 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/executor/nodeCtescan.c,v 1.2 2008/10/23 15:29:23 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -303,11 +303,10 @@ ExecEndCteScan(CteScanState *node)
|
||||
void
|
||||
ExecCteScanReScan(CteScanState *node, ExprContext *exprCtxt)
|
||||
{
|
||||
Tuplestorestate *tuplestorestate;
|
||||
|
||||
tuplestorestate = node->leader->cte_table;
|
||||
Tuplestorestate *tuplestorestate = node->leader->cte_table;
|
||||
|
||||
ExecClearTuple(node->ss.ps.ps_ResultTupleSlot);
|
||||
node->ss.ps.ps_TupFromTlist = false;
|
||||
|
||||
if (node->leader == node)
|
||||
{
|
||||
|
Reference in New Issue
Block a user