From: Tom Lane <tgl@sss.pgh.pa.us>
To: Amit Kapila <amit.kapila16@gmail.com>
Cc: Robert Haas <rhaas@postgresql.org>
Cc: pgsql-committers <pgsql-committers@postgresql.org>
Subject: Re: pgsql: Try again to fix the way the scanjoin_target is used with partia
Date: Sat, 18 Jun 2016 00:36:12 -0400
Message-ID: <19201.1466224572@sss.pgh.pa.us> (raw)
In-Reply-To: <CAA4eK1+S5KXVFHgeNzEqZU-jDR62uGMUkL-iFNA6KApySP2uUA@mail.gmail.com>
References: <E1bE0PD-0000l2-OE@gemulon.postgresql.org>
<20853.1466210514@sss.pgh.pa.us>
<CAA4eK1Jo7pj1wHHJRgTKj4q1doivpz67tX_jA-iajYXnMtM5mg@mail.gmail.com>
<27684.1466213813@sss.pgh.pa.us>
<CAA4eK1LSMZG8Kg1ezduwn9q2KcO8=XvtNjU6-K4GPWdFW59uCQ@mail.gmail.com>
<CAA4eK1JX8Wc0pKqn6SmhEWm2GdZE-E2wmLv+tHRbY+m-tK7tDw@mail.gmail.com>
<9539.1466220369@sss.pgh.pa.us>
<CAA4eK1+S5KXVFHgeNzEqZU-jDR62uGMUkL-iFNA6KApySP2uUA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
Amit Kapila <amit.kapila16@gmail.com> writes:
> On Sat, Jun 18, 2016 at 8:56 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> I think the two lines in question are just a poorly-thought-through case
>> of premature optimization. If removing them makes the failures go away
>> for me, that's what I plan to do.
> That should make the failure go-away.
Well, it did make the errors go away, but it also made the first test
case in select_parallel.sql change plan, because the parallel plan is
only a whisker cheaper than non-parallel, and the extra charge for the
nonexistent Result node changed the decision. I'm not exactly convinced
that that test case represents behavior we need to preserve, but for
the moment I rejiggered the cost adjustment so the test case stays the
same.
If we keep it like this, we definitely ought to refactor things so that
fewer places are aware of the possibility of the Result getting omitted.
Maybe push that logic into create_projection_path? If we did, we might
not need a separate apply_projection_to_path function at all? Too tired
to decide about it right now.
regards, tom lane
--
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, amit.kapila16@gmail.com, rhaas@postgresql.org
Subject: Re: pgsql: Try again to fix the way the scanjoin_target is used with partia
In-Reply-To: <19201.1466224572@sss.pgh.pa.us>
References: <E1bE0PD-0000l2-OE@gemulon.postgresql.org> <20853.1466210514@sss.pgh.pa.us> <CAA4eK1Jo7pj1wHHJRgTKj4q1doivpz67tX_jA-iajYXnMtM5mg@mail.gmail.com> <27684.1466213813@sss.pgh.pa.us> <CAA4eK1LSMZG8Kg1ezduwn9q2KcO8=XvtNjU6-K4GPWdFW59uCQ@mail.gmail.com> <CAA4eK1JX8Wc0pKqn6SmhEWm2GdZE-E2wmLv+tHRbY+m-tK7tDw@mail.gmail.com> <9539.1466220369@sss.pgh.pa.us> <CAA4eK1+S5KXVFHgeNzEqZU-jDR62uGMUkL-iFNA6KApySP2uUA@mail.gmail.com> <19201.1466224572@sss.pgh.pa.us>
* 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