mirror of
https://github.com/postgres/postgres.git
synced 2025-07-07 00:36:50 +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:
src
backend
include
executor
@ -94,7 +94,7 @@ ExecRecursiveUnion(PlanState *pstate)
|
||||
if (plan->numCols > 0)
|
||||
{
|
||||
/* Find or build hashtable entry for this tuple's group */
|
||||
LookupTupleHashEntry(node->hashtable, slot, &isnew);
|
||||
LookupTupleHashEntry(node->hashtable, slot, &isnew, NULL);
|
||||
/* Must reset temp context after each hashtable lookup */
|
||||
MemoryContextReset(node->tempContext);
|
||||
/* Ignore tuple if already seen */
|
||||
@ -141,7 +141,7 @@ ExecRecursiveUnion(PlanState *pstate)
|
||||
if (plan->numCols > 0)
|
||||
{
|
||||
/* Find or build hashtable entry for this tuple's group */
|
||||
LookupTupleHashEntry(node->hashtable, slot, &isnew);
|
||||
LookupTupleHashEntry(node->hashtable, slot, &isnew, NULL);
|
||||
/* Must reset temp context after each hashtable lookup */
|
||||
MemoryContextReset(node->tempContext);
|
||||
/* Ignore tuple if already seen */
|
||||
|
Reference in New Issue
Block a user