1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-30 21:42:05 +03:00

Fixup for nodeAgg.c refactor.

Commit 5b618e1f made an unintended behavior change.
This commit is contained in:
Jeff Davis
2020-02-20 17:04:19 -08:00
parent 032f9ae012
commit b7fabe80df

View File

@ -1287,6 +1287,9 @@ build_hash_tables(AggState *aggstate)
Assert(perhash->aggnode->numGroups > 0); Assert(perhash->aggnode->numGroups > 0);
if (perhash->hashtable)
ResetTupleHashTable(perhash->hashtable);
else
build_hash_table(aggstate, setno, perhash->aggnode->numGroups); build_hash_table(aggstate, setno, perhash->aggnode->numGroups);
} }
} }