From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Avoid generating bogus paths with partitionwise aggregate.
Date: Fri, 22 Jun 2018 13:21:44 +0000
Message-ID: <E1fWM0W-0007VZ-NW@gemulon.postgresql.org> (raw)
Avoid generating bogus paths with partitionwise aggregate.
Previously, if some or all partitions had no partially aggregated path,
we would still try to generate a partially aggregated path for the
parent, leading to assertion failures or wrong answers.
Report by Rajkumar Raghuwanshi. Patch by Jeevan Chalke, reviewed
by Ashutosh Bapat. A few changes by me.
Discussion: http://postgr.es/m/CAKcux6=q4+Mw8gOOX16ef6ZMFp9Cve7KWFstUsrDa4GiFaXGUQ@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/c6f28af5d7af87d7370e5f169251d91437f100a2
Modified Files
--------------
src/backend/optimizer/plan/planner.c | 21 +++--
src/test/regress/expected/partition_aggregate.out | 105 ++++++++++++++++++++++
src/test/regress/sql/partition_aggregate.sql | 24 +++++
3 files changed, 142 insertions(+), 8 deletions(-)
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: rhaas@postgresql.org
Subject: Re: pgsql: Avoid generating bogus paths with partitionwise aggregate.
In-Reply-To: <E1fWM0W-0007VZ-NW@gemulon.postgresql.org>
References: <E1fWM0W-0007VZ-NW@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