OSDN Git Service

Fix hash aggregation to suppress unneeded columns from being stored in
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 28 Jun 2006 19:40:52 +0000 (19:40 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 28 Jun 2006 19:40:52 +0000 (19:40 +0000)
commit485375a1c9270fb3eefe4b9391dd976e563c2c1c
tree7c4d4c4600bcf1eb6142ca4962f5d0f65acbf7bb
parentcfc710312e75e1d5ed49e42327a4e32386d6b142
Fix hash aggregation to suppress unneeded columns from being stored in
tuple hash table entries.  This addresses the problem previously noted
that use of a 'physical tlist' in the input scan node could bloat the
hash table entries far beyond what the planner expects.  It's a better
answer than my previous thought of undoing the physical tlist optimization,
because we can also remove columns that are needed to compute the aggregate
functions but aren't part of the grouping column set.
src/backend/executor/nodeAgg.c
src/include/nodes/execnodes.h