From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: Fix possible crash in partition-wise join.
Date: Mon, 05 Feb 2018 22:34:05 +0000
Message-ID: <E1eipKv-0006Hf-Qr@gemulon.postgresql.org> (raw)
Fix possible crash in partition-wise join.
The previous code assumed that we'd always succeed in creating
child-joins for a joinrel for which partition-wise join was considered,
but that's not guaranteed, at least in the case where dummy rels
are involved.
Ashutosh Bapat, with some wordsmithing by me.
Discussion: http://postgr.es/m/CAFjFpRf8=uyMYYfeTBjWDMs1tR5t--FgOe2vKZPULxxdYQ4RNw@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/f069c91a5793ff6b7884120de748b2005ee7756f
Modified Files
--------------
src/backend/optimizer/path/allpaths.c | 18 +++---------
src/backend/optimizer/path/joinrels.c | 16 -----------
src/backend/optimizer/util/relnode.c | 5 +++-
src/include/nodes/relation.h | 14 +++++----
src/test/regress/expected/partition_join.out | 43 ++++++++++++++++------------
src/test/regress/sql/partition_join.sql | 2 +-
6 files changed, 43 insertions(+), 55 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: Fix possible crash in partition-wise join.
In-Reply-To: <E1eipKv-0006Hf-Qr@gemulon.postgresql.org>
References: <E1eipKv-0006Hf-Qr@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