pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Pg Hackers <pgsql-hackers@postgresql.org>
Subject: Re: Oddity with parallel safety test for scan/join target in grouping_planner
Date: Mon, 11 Mar 2019 10:46:12 -0400
Message-ID: <22068.1552315572@sss.pgh.pa.us> (raw)
In-Reply-To: <5C85F24E.4050404@lab.ntt.co.jp>
References: <5C75303E.8020303@lab.ntt.co.jp>
	<CA+TgmobmV=Zw2OEJKUorJe=e+_fCzsvYErR6tXxTjCzK45x9RQ@mail.gmail.com>
	<5C7908B9.5070407@lab.ntt.co.jp>
	<24818.1552077419@sss.pgh.pa.us>
	<5C85DC65.2050409@lab.ntt.co.jp>
	<32401.1552277190@sss.pgh.pa.us>
	<5C85ED63.8000805@lab.ntt.co.jp>
	<1962.1552281261@sss.pgh.pa.us>
	<5C85F24E.4050404@lab.ntt.co.jp>

Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp> writes:
> (2019/03/11 14:14), Tom Lane wrote:
>> Seems to me it's the other way around: the final target would include
>> all functions invoked in the grouping target plus maybe some more.
>> So a non-parallel-safe grouping target implies a non-parallel-safe
>> final target, but not vice versa.

> I mean the final *scan/join* target, not the final target.

Oh, of course.  Yup, I was too tired last night :-(.  So this is
just a plan-quality problem not a wrong-answer problem.

However, I'd still argue for back-patching into v11, on the grounds
that this is a regression from v10.  The example you just gave does
produce the desired plan in v10, and I think it's more likely that
people would complain about a regression from v10 than that they'd
be unhappy because we changed it between 11.2 and 11.3.

			regards, tom lane




view thread (12+ messages)  latest in thread

Message-ID: <22068.1552315572@sss.pgh.pa.us>
Permalink:  ../22068.1552315572@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/22068.1552315572@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 using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, fujita.etsuro@lab.ntt.co.jp, robertmhaas@gmail.com
  Subject: Re: Oddity with parallel safety test for scan/join target in grouping_planner
  In-Reply-To: <22068.1552315572@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