aboutsummaryrefslogtreecommitdiff
path: root/src/backend/nodes/outfuncs.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>1999-12-13 01:27:21 +0000
committerTom Lane <tgl@sss.pgh.pa.us>1999-12-13 01:27:21 +0000
commita8ae19ec3d13452de931736126d0786a148ee643 (patch)
tree3dbdbba249c27b5362865f9ff1c7b2675c136574 /src/backend/nodes/outfuncs.c
parentefb36d2be8272d03167fe4205b640129ffe583fb (diff)
downloadpostgresql-a8ae19ec3d13452de931736126d0786a148ee643.tar.gz
postgresql-a8ae19ec3d13452de931736126d0786a148ee643.zip
aggregate(DISTINCT ...) works, per SQL spec.
Note this forces initdb because of change of Aggref node in stored rules.
Diffstat (limited to 'src/backend/nodes/outfuncs.c')
-rw-r--r--src/backend/nodes/outfuncs.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/backend/nodes/outfuncs.c b/src/backend/nodes/outfuncs.c
index 78bda61b30f..7907f1b62ef 100644
--- a/src/backend/nodes/outfuncs.c
+++ b/src/backend/nodes/outfuncs.c
@@ -5,7 +5,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: outfuncs.c,v 1.99 1999/12/10 07:37:31 tgl Exp $
+ * $Id: outfuncs.c,v 1.100 1999/12/13 01:26:53 tgl Exp $
*
* NOTES
* Every (plan) node in POSTGRES has an associated "out" routine which
@@ -680,14 +680,17 @@ static void
_outAggref(StringInfo str, Aggref *node)
{
appendStringInfo(str,
- " AGGREG :aggname %s :basetype %u :aggtype %u :target ",
+ " AGGREG :aggname %s :basetype %u :aggtype %u :target ",
stringStringInfo(node->aggname),
node->basetype,
node->aggtype);
_outNode(str, node->target);
- appendStringInfo(str, " :usenulls %s ",
- node->usenulls ? "true" : "false");
+ appendStringInfo(str, " :usenulls %s :aggstar %s :aggdistinct %s ",
+ node->usenulls ? "true" : "false",
+ node->aggstar ? "true" : "false",
+ node->aggdistinct ? "true" : "false");
+ /* aggno is not dumped */
}
/*