HashAgg: use Bump allocator for hash TupleHashTable entries.

Jeff Davis <jdavis@postgresql.org>

Commit: cc721c459d3783bbdb4beb1bbfa802a5328d15a2
Author: Jeff Davis <jdavis@postgresql.org>
Date: 2025-03-25T05:05:33Z
Releases: 18.0
HashAgg: use Bump allocator for hash TupleHashTable entries.

The entries aren't freed until the entire hash table is destroyed, so
use the Bump allocator to improve allocation speed, avoid wasting
space on the chunk header, and avoid wasting space due to the
power-of-two allocations.

Discussion: https://postgr.es/m/CAApHDvqv1aNB4cM36FzRwivXrEvBO_LsG_eQ3nqDXTjECaatOQ@mail.gmail.com
Reviewed-by: David Rowley

Files

PathChange+/−
src/backend/executor/execUtils.c modified +8 −9
src/backend/executor/nodeAgg.c modified +93 −18
src/include/nodes/execnodes.h modified +3 −2

Discussion