diff options
Diffstat (limited to 'src/backend/executor/nodeAgg.c')
-rw-r--r-- | src/backend/executor/nodeAgg.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/executor/nodeAgg.c b/src/backend/executor/nodeAgg.c index b48a12c1a34..66cd4616963 100644 --- a/src/backend/executor/nodeAgg.c +++ b/src/backend/executor/nodeAgg.c @@ -272,6 +272,7 @@ #include "utils/logtape.h" #include "utils/lsyscache.h" #include "utils/memutils.h" +#include "utils/memutils_memorychunk.h" #include "utils/syscache.h" #include "utils/tuplesort.h" @@ -314,10 +315,9 @@ #define HASHAGG_HLL_BIT_WIDTH 5 /* - * Estimate chunk overhead as a constant 16 bytes. XXX: should this be - * improved? + * Assume the palloc overhead always uses sizeof(MemoryChunk) bytes. */ -#define CHUNKHDRSZ 16 +#define CHUNKHDRSZ sizeof(MemoryChunk) /* * Represents partitioned spill data for a single hashtable. Contains the |