pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Amit Kapila <amit.kapila16@gmail.com>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: [COMMITTERS] pgsql: Try again to fix the way the scanjoin_target is used with partia
Date: Tue, 21 Jun 2016 15:43:46 -0400
Message-ID: <16315.1466538226@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+TgmoavSXW0QUJY2xAjRfrv2Y2EQ1dvZw9zF0P0tGOifkJA9w@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>
	<19201.1466224572@sss.pgh.pa.us>
	<8536.1466530136@sss.pgh.pa.us>
	<CA+TgmoavSXW0QUJY2xAjRfrv2Y2EQ1dvZw9zF0P0tGOifkJA9w@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Robert Haas <robertmhaas@gmail.com> writes:
> On Tue, Jun 21, 2016 at 1:28 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Also, I got rid of the target_parallel argument to
>> apply_projection_to_path, as I thought that that was just way too much
>> interconnection between apply_projection_to_path and its callers than
>> is justified for what it saves (namely one call of has_parallel_hazard
>> when planning a Gather).  In general, having that argument could *add*
>> extra calls of has_parallel_hazard, since callers might have to do
>> that computation whether or not a Gather is present.

> I had a feeling you weren't going to like that, but it also didn't
> seem great to redo that computation for every path.  Right now, we
> only need it for Gather paths, but if we start marking subquery RTEs
> as parallel-safe and fix upper rels to correctly set
> consider_parallel, I have a feeling this is going to be needed more.
> But feel free to ignore that for now since I don't have a completely
> well-thought-out theory on this.

If that does start being a problem, I'd be inclined to address it by
teaching PathTarget to track whether its contents are parallel-safe.
For now, though, I think we don't need the complication.

			regards, tom lane


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



view thread (14+ messages)

Message-ID: <16315.1466538226@sss.pgh.pa.us>
Permalink:  ../16315.1466538226@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/16315.1466538226@sss.pgh.pa.us

 · 

reply

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, robertmhaas@gmail.com, amit.kapila16@gmail.com, pgsql-hackers@postgresql.org
  Subject: Re: [COMMITTERS] pgsql: Try again to fix the way the scanjoin_target is used with partia
  In-Reply-To: <16315.1466538226@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> <8536.1466530136@sss.pgh.pa.us> <CA+TgmoavSXW0QUJY2xAjRfrv2Y2EQ1dvZw9zF0P0tGOifkJA9w@mail.gmail.com> <16315.1466538226@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