aboutsummaryrefslogtreecommitdiff
path: root/doc/src/sgml/ref/postgres-ref.sgml
diff options
context:
space:
mode:
authorJeff Davis <jdavis@postgresql.org>2020-12-26 17:25:30 -0800
committerJeff Davis <jdavis@postgresql.org>2020-12-26 17:25:30 -0800
commit05c0258966b502fae1bd63dcbe74d52f5c6f6948 (patch)
tree94bb5ab4108b8a523e39ef57101c288cf8d4a673 /doc/src/sgml/ref/postgres-ref.sgml
parentccbe34139b7d9059f4af3405b2411f653cc2ce7c (diff)
downloadpostgresql-05c0258966b502fae1bd63dcbe74d52f5c6f6948.tar.gz
postgresql-05c0258966b502fae1bd63dcbe74d52f5c6f6948.zip
Fix bug #16784 in Disk-based Hash Aggregation.
Before processing tuples, agg_refill_hash_table() was setting all pergroup pointers to NULL to signal to advance_aggregates() that it should not attempt to advance groups that had spilled. The problem was that it also set the pergroups for sorted grouping sets to NULL, which caused rescanning to fail. Instead, change agg_refill_hash_table() to only set the pergroups for hashed grouping sets to NULL; and when compiling the expression, pass doSort=false. Reported-by: Alexander Lakhin Discussion: https://postgr.es/m/16784-7ff169bf2c3d1588%40postgresql.org Backpatch-through: 13
Diffstat (limited to 'doc/src/sgml/ref/postgres-ref.sgml')
0 files changed, 0 insertions, 0 deletions