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
1 changed files with 4 additions and 1 deletions

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);
}
}