Include chunk overhead in hash table entry size estimate.

Jeff Davis <jdavis@postgresql.org>

Commit: 0588ee63aa2d8c5765d086991555cd9acdd4d86f
Author: Jeff Davis <jdavis@postgresql.org>
Date: 2020-04-04T03:07:58Z
Releases: 13.0
Include chunk overhead in hash table entry size estimate.

Don't try to be precise about it, just use a constant 16 bytes of
chunk overhead. Being smarter would require knowing the memory context
where the chunk will be allocated, which is not known by all callers.

Discussion: https://postgr.es/m/20200325220936.il3ni2fj2j2b45y5@alap3.anarazel.de

Files

PathChange+/−
src/backend/executor/nodeAgg.c modified +30 −6
src/include/executor/nodeAgg.h modified +1 −1

Discussion