From: Andrew Gierth <rhodiumtoad@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Repair crash with unsortable grouping sets.
Date: Wed, 21 Mar 2018 11:43:14 +0000
Message-ID: <E1eyc9C-0004Se-Mp@gemulon.postgresql.org> (raw)
Repair crash with unsortable grouping sets.
If there were multiple grouping sets, none of them empty, all of which
were unsortable, then an oversight in consider_groupingsets_paths led
to a null pointer dereference. Fix, and add a regression test for this
case.
Per report from Dang Minh Huong, though I didn't use their patch.
Backpatch to 10.x where hashed grouping sets were added.
Branch
------
REL_10_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/cf21c46495897cf3a59f2b1230b522a969a17bea
Modified Files
--------------
src/backend/optimizer/plan/planner.c | 23 ++++++++++++++++++++++-
src/test/regress/expected/groupingsets.out | 12 ++++++++++++
src/test/regress/sql/groupingsets.sql | 5 +++++
3 files changed, 39 insertions(+), 1 deletion(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: rhodiumtoad@postgresql.org
Subject: Re: pgsql: Repair crash with unsortable grouping sets.
In-Reply-To: <E1eyc9C-0004Se-Mp@gemulon.postgresql.org>
References: <E1eyc9C-0004Se-Mp@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox