mirror of
https://github.com/postgres/postgres.git
synced 2025-11-12 05:01:15 +03:00
Phase 2 of hashed-aggregation project. nodeAgg.c now knows how to do
hashed aggregation, but there's not yet planner support for it.
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.215 2002/11/06 00:00:43 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.216 2002/11/06 22:31:23 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -524,6 +524,7 @@ _copyAgg(Agg *from)
|
||||
memcpy(newnode->grpColIdx, from->grpColIdx,
|
||||
from->numCols * sizeof(AttrNumber));
|
||||
}
|
||||
newnode->numGroups = from->numGroups;
|
||||
|
||||
return newnode;
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.177 2002/11/06 00:00:44 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.178 2002/11/06 22:31:24 tgl Exp $
|
||||
*
|
||||
* NOTES
|
||||
* Every (plan) node in POSTGRES has an associated "out" routine which
|
||||
@@ -597,8 +597,8 @@ _outAgg(StringInfo str, Agg *node)
|
||||
{
|
||||
appendStringInfo(str, " AGG ");
|
||||
_outPlanInfo(str, (Plan *) node);
|
||||
appendStringInfo(str, " :aggstrategy %d :numCols %d ",
|
||||
(int) node->aggstrategy, node->numCols);
|
||||
appendStringInfo(str, " :aggstrategy %d :numCols %d :numGroups %ld ",
|
||||
(int) node->aggstrategy, node->numCols, node->numGroups);
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
Reference in New Issue
Block a user