mirror of
https://github.com/postgres/postgres.git
synced 2025-07-03 20:02:46 +03:00
Fix LookupTupleHashEntryHash() pipeline-stall issue.
Refactor hash lookups in nodeAgg.c to improve performance. Author: Andres Freund and Jeff Davis Discussion: https://postgr.es/m/20200612213715.op4ye4q7gktqvpuo%40alap3.anarazel.de Backpatch-through: 13
This commit is contained in:
@ -381,7 +381,7 @@ setop_fill_hash_table(SetOpState *setopstate)
|
||||
|
||||
/* Find or build hashtable entry for this tuple's group */
|
||||
entry = LookupTupleHashEntry(setopstate->hashtable, outerslot,
|
||||
&isnew);
|
||||
&isnew, NULL);
|
||||
|
||||
/* If new tuple group, initialize counts */
|
||||
if (isnew)
|
||||
@ -402,7 +402,7 @@ setop_fill_hash_table(SetOpState *setopstate)
|
||||
|
||||
/* For tuples not seen previously, do not make hashtable entry */
|
||||
entry = LookupTupleHashEntry(setopstate->hashtable, outerslot,
|
||||
NULL);
|
||||
NULL, NULL);
|
||||
|
||||
/* Advance the counts if entry is already present */
|
||||
if (entry)
|
||||
|
Reference in New Issue
Block a user