Fixup for nodeAgg.c refactor.
Commit made an unintended behavior change.
@@ -1287,6 +1287,9 @@ build_hash_tables(AggState *aggstate)
Assert(perhash->aggnode->numGroups > 0);
+ if (perhash->hashtable)
+ ResetTupleHashTable(perhash->hashtable);
+ else
build_hash_table(aggstate, setno, perhash->aggnode->numGroups);
}
}
