Thread: pgsql: Refactor hash_agg_entry_size().

pgsql: Refactor hash_agg_entry_size().

From
Jeff Davis
Date:
Refactor hash_agg_entry_size().

Consolidate the calculations for hash table size estimation. This will
help with upcoming Hash Aggregation work that will add additional call
sites.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/7d4395d0a11589aa450a073d658c49b420f4493f

Modified Files
--------------
src/backend/executor/nodeAgg.c       | 23 ++++++++---------------
src/backend/optimizer/plan/planner.c |  9 ++-------
src/backend/utils/adt/selfuncs.c     | 12 ++----------
src/include/executor/nodeAgg.h       |  3 ++-
4 files changed, 14 insertions(+), 33 deletions(-)