Modify nodeAgg.c so that no rows are returned for a GROUP BY
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 26 Sep 1999 21:21:15 +0000 (21:21 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 26 Sep 1999 21:21:15 +0000 (21:21 +0000)
commitbe09bc9ff2e49f0d303bd4f26ce4c9de631b14bd
tree2b5c2d41ce4ab211b8b1af90d92e4befb2dd066c
parent40f65241614deac2dda82c13e7228d132ee73153
Modify nodeAgg.c so that no rows are returned for a GROUP BY
with no input rows, per pghackers discussions around 7/22/99.  Clean up
a bunch of ugly coding while at it; remove redundant re-lookup of
aggregate info at start of each new GROUP.  Arrange to pfree intermediate
values when they are pass-by-ref types, so that aggregates on pass-by-ref
types no longer eat memory.  This takes care of a couple of TODO items...
src/backend/executor/execQual.c
src/backend/executor/nodeAgg.c
src/backend/utils/adt/float.c
src/include/nodes/execnodes.h