8000 nodeSetOp.c: missing additionalsize for BuildTupleHashTable(). · postgres/postgres@32ddfaf · GitHub
[go: up one dir, main page]

Skip to content

Commit 32ddfaf

Browse files
committed
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
1 parent 8a96fae commit 32ddfaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/executor/nodeSetOp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ build_hash_table(SetOpState *setopstate)
104104
setopstate->hashfunctions,
105105
node->cmpCollations,
106106
node->numGroups,
107-
0,
107+
sizeof(SetOpStatePerGroupData),
108108
setopstate->ps.state->es_query_cxt,
109109
setopstate->tableContext,
110110
econtext->ecxt_per_tuple_memory,

0 commit comments

Comments
 (0)
0