Skip to content

Commit bbee1c5

Browse files
author
Neil Conway
committed
Fix an omission in the outfuncs.c support for Agg nodes: the grpColIdx
and grpOperators fields were not emitted by _outAgg().
1 parent ccd3e32 commit bbee1c5

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/backend/nodes/outfuncs.c

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/nodes/outfuncs.c,v 1.321 2008/01/07 21:33:10 neilc Exp $
11+
* $PostgreSQL: pgsql/src/backend/nodes/outfuncs.c,v 1.322 2008/01/09 08:46:44 neilc Exp $
1212
*
1313
* NOTES
1414
* Every node type that can appear in stored rules' parsetrees *must*
@@ -501,12 +501,23 @@ _outHashJoin(StringInfo str, HashJoin *node)
501501
static void
502502
_outAgg(StringInfo str, Agg *node)
503503
{
504+
int i;
505+
504506
WRITE_NODE_TYPE("AGG");
505507

506508
_outPlanInfo(str, (Plan *) node);
507509

508510
WRITE_ENUM_FIELD(aggstrategy, AggStrategy);
509511
WRITE_INT_FIELD(numCols);
512+
513+
appendStringInfo(str, " :grpColIdx");
514+
for (i = 0; i < node->numCols; i++)
515+
appendStringInfo(str, " %d", node->grpColIdx[i]);
516+
517+
appendStringInfo(str, " :grpOperators");
518+
for (i = 0; i < node->numCols; i++)
519+
appendStringInfo(str, " %u", node->grpOperators[i]);
520+
510521
WRITE_LONG_FIELD(numGroups);
511522
}
512523

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy