]> granicus.if.org Git - postgresql/commitdiff
Repair commit b81b5a96f424531b97cdd1dba97d9d1b9c9d372e.
authorRobert Haas <rhaas@postgresql.org>
Fri, 6 Jan 2017 14:34:26 +0000 (09:34 -0500)
committerRobert Haas <rhaas@postgresql.org>
Fri, 6 Jan 2017 14:34:26 +0000 (09:34 -0500)
This commit purported to use a variable hash seed for Partial
HashAggregate, but actually did the opposite - it made us use a
variable seed for any HashAggregate that is NOT partial.  Woops.

src/backend/executor/nodeAgg.c

index c16b62467f08457e360fcbef6d86b6b3d66b7033..dc64b3262a9d7c9c689d3d0c97d6e8368f8cec51 100644 (file)
@@ -1738,7 +1738,7 @@ build_hash_table(AggState *aggstate)
                                                                                          additionalsize,
                                                         aggstate->aggcontexts[0]->ecxt_per_tuple_memory,
                                                                                          tmpmem,
-                                                                 !DO_AGGSPLIT_SKIPFINAL(aggstate->aggsplit));
+                                                                 DO_AGGSPLIT_SKIPFINAL(aggstate->aggsplit));
 }
 
 /*