1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-29 10:41:53 +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,7 +1287,10 @@ build_hash_tables(AggState *aggstate)
Assert(perhash->aggnode->numGroups > 0);
build_hash_table(aggstate, setno, perhash->aggnode->numGroups);
if (perhash->hashtable)
ResetTupleHashTable(perhash->hashtable);
else
build_hash_table(aggstate, setno, perhash->aggnode->numGroups);
}
}