Remove 'additional' pointer from TupleHashEntryData.
authorJeff Davis <jdavis@postgresql.org>
Tue, 25 Mar 2025 05:06:02 +0000 (22:06 -0700)
committerJeff Davis <jdavis@postgresql.org>
Tue, 25 Mar 2025 05:06:02 +0000 (22:06 -0700)
commit626df47ad9db809dc8f93330175ab95b75914721
treedb18183d49021a32b56ba0d42517bbb3f7f416c7
parenta0942f441ed651f6345d969b7a8f4774eda1fceb
Remove 'additional' pointer from TupleHashEntryData.

Reduces memory required for hash aggregation by avoiding an allocation
and a pointer in the TupleHashEntryData structure. That structure is
used for all buckets, whether occupied or not, so the savings is
substantial.

Discussion: https://postgr.es/m/AApHDvpN4v3t_sdz4dvrv1Fx_ZPw=twSnxuTEytRYP7LFz5K9A@mail.gmail.com
Reviewed-by: David Rowley <dgrowleyml@gmail.com>
src/backend/executor/execGrouping.c
src/include/executor/executor.h
src/include/nodes/execnodes.h