Skip to content

Commit e2bc275

Browse files
committed
Fix for Group ReScan suggested by Vadim.
1 parent 4f807be commit e2bc275

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/backend/executor/nodeGroup.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* columns. (ie. tuples from the same group are consecutive)
1414
*
1515
* IDENTIFICATION
16-
* $Header: /cvsroot/pgsql/src/backend/executor/nodeGroup.c,v 1.20 1998/07/16 01:49:18 momjian Exp $
16+
* $Header: /cvsroot/pgsql/src/backend/executor/nodeGroup.c,v 1.21 1998/07/16 02:58:09 momjian Exp $
1717
*
1818
*-------------------------------------------------------------------------
1919
*/
@@ -425,4 +425,8 @@ ExecReScanGroup(Group *node, ExprContext *exprCtxt, Plan *parent)
425425

426426
grpstate->grp_useFirstTuple = FALSE;
427427
grpstate->grp_done = FALSE;
428+
429+
if (((Plan *) node)->lefttree &&
430+
((Plan *) node)->lefttree->chgParam == NULL)
431+
ExecReScan(((Plan *) node)->lefttree, exprCtxt, (Plan *) node);
428432
}

0 commit comments

Comments
 (0)