postgres.git / summary / log / commit / refs
commit 32ddfaffd1493b27f200afb3919d3fd2e6a200ef
Author: Jeff Davis <jdavis@postgresql.org>
Date: Tue Jan 07 22:55:53 2025 +0000
First released in: 18.0
nodeSetOp.c: missing additionalsize for BuildTupleHashTable().
Provide additionalsize argument, which can affect the calculations for
'nbuckets'. Also, future work for Hash Aggregation will rely on the
correct additionalsize.
Discussion: https://postgr.es/m/7530bd8783b1a78d53a3c70383e38d8da0a5ffe5.camel%40j-davis.com
src/backend/executor/nodeSetOp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/backend/executor/nodeSetOp.c b/src/backend/executor/nodeSetOp.c
index bea30d6c8f0..5b7ff9c3748 100644
--- a/src/backend/executor/nodeSetOp.c
+++ b/src/backend/executor/nodeSetOp.c
@@ -104,7 +104,7 @@ build_hash_table(SetOpState *setopstate)
setopstate->hashfunctions,
node->cmpCollations,
node->numGroups,
- 0,
+ sizeof(SetOpStatePerGroupData),
setopstate->ps.state->es_query_cxt,
setopstate->tableContext,
econtext->ecxt_per_tuple_memory,
[parent: 8a96faedc408]