From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@postgresql.org
Subject: pgsql: Still another try at fixing scanjoin_target insertion into paral
Date: Sat, 18 Jun 2016 04:29:01 +0000
Message-ID: <E1bE7sT-000098-34@gemulon.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
Still another try at fixing scanjoin_target insertion into parallel plans.
The previous code neglected the fact that the scanjoin_target might
carry sortgroupref labelings that we need to absorb. Instead, do
create_projection_path() unconditionally, and tweak the path's cost
estimate after the fact. (I'm now convinced that we ought to refactor
the way we account for sometimes not needing a separate projection step,
but right now is not the time for that sort of cleanup.)
Problem identified by Amit Kapila, patch by me.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/598aa194af2fb7f294ae4b029494a134a44be333
Modified Files
--------------
src/backend/optimizer/plan/planner.c | 39 ++++++++++++++-------------
src/test/regress/expected/select_parallel.out | 18 ++++++++++++-
src/test/regress/sql/select_parallel.sql | 6 ++++-
3 files changed, 43 insertions(+), 20 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
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: tgl@sss.pgh.pa.us
Subject: Re: pgsql: Still another try at fixing scanjoin_target insertion into paral
In-Reply-To: <E1bE7sT-000098-34@gemulon.postgresql.org>
References: <E1bE7sT-000098-34@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