postgresql/src
Jeff Davis 05c0258966 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
2020-12-26 17:25:30 -08:00
..
backend Fix bug #16784 in Disk-based Hash Aggregation. 2020-12-26 17:25:30 -08:00
bin initdb: document that -K requires an argument 2020-12-26 10:00:05 -05:00
common Fix function call typo in frontend Win32 code, commit 978f869b99 2020-12-25 20:49:50 -05:00
fe_utils Remove incorrect %s in string 2020-11-09 10:38:22 +01:00
include remove uint128 requirement from patch 978f869b99 (CFE) 2020-12-25 11:35:59 -05:00
interfaces revert removal of hex_decode() from ecpg from commit c3826f831e 2020-12-24 18:21:37 -05:00
makefiles Remove libpq.rc, use win32ver.rc for libpq 2020-01-15 15:06:12 +01:00
pl Multirange datatypes 2020-12-20 07:20:33 +03:00
port Remove ability to independently select random number generator 2020-11-20 13:57:33 +01:00
template On macOS, use -isysroot in link steps as well as compile steps. 2020-11-20 00:07:09 -05:00
test Fix bug #16784 in Disk-based Hash Aggregation. 2020-12-26 17:25:30 -08:00
timezone Improve hash_create()'s API for some added robustness. 2020-12-15 11:38:53 -05:00
tools Add key management system 2020-12-25 10:19:44 -05:00
tutorial Remove support for postfix (right-unary) operators. 2020-09-17 19:38:05 -04:00
.gitignore
DEVELOPERS
Makefile Remove the option to build thread_test.c outside configure. 2020-10-21 12:08:48 -04:00
Makefile.global.in Split Makefile symbol CFLAGS_VECTOR into two symbols. 2020-09-06 21:28:16 -04:00
Makefile.shlib Add PostgreSQL home page to --help output 2020-02-28 13:12:21 +01:00
nls-global.mk NLS: Fix backend gettext triggers 2019-09-23 09:04:20 +02:00