pg.ddx.io pgsql-hackers@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Tom Lane <tgl@sss.pgh.pa.us>
To: Richard Guo <guofenglinux@gmail.com>
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: Allowing parallel-safe initplans
Date: Tue, 18 Apr 2023 09:33:57 -0400
Message-ID: <2636188.1681824837@sss.pgh.pa.us> (raw )
In-Reply-To: <CAMbWs4-ED_ga2v0SbjKWV4Ay2GSVqtK_6xiG3iHKH-sHcCDs3A@mail.gmail.com >
References: <1129530.1681317832@sss.pgh.pa.us >
<CAMbWs4_7hFTDjYzJs6sYpceY_0MFRA+DhdKxAMOREP084vr2pA@mail.gmail.com >
<1315906.1681394451@sss.pgh.pa.us >
<CAMbWs48p-WpnLdR9ZQ4QsHZP_a-P0rktAYo4Z3uOHUAkH3fjQg@mail.gmail.com >
<CAMbWs49RCcbqjwuiEobCsE4MU9qB0Me+dextApkwCmXe1GZroA@mail.gmail.com >
<2425967.1681743873@sss.pgh.pa.us >
<CAMbWs4-ED_ga2v0SbjKWV4Ay2GSVqtK_6xiG3iHKH-sHcCDs3A@mail.gmail.com >
Richard Guo <guofenglinux@gmail.com> writes:
> On Mon, Apr 17, 2023 at 11:04 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> I wondered about that too, but how come neither of us saw non-cosmetic
>> failures (ie, actual query output changes not just EXPLAIN changes)
>> when we tried this?
> Sorry I forgot to mention that I did see query output changes after
> moving the initPlans to the Gather node.
Hmm, my memory was just of seeing the EXPLAIN output changes, but
maybe those got my attention to the extent of missing the others.
> It seems that in this case the top_plan does not have any extParam, so
> the Gather node that is added atop the top_plan does not have a chance
> to get its initParam filled in set_param_references().
Oh, so maybe we'd need to copy up extParam as well? But it's largely
moot, since I don't see a good way to avoid breaking the EXPLAIN
output.
regards, tom lane
view thread (15+ messages) latest in thread
Message-ID: <2636188.1681824837@sss.pgh.pa.us>
Permalink: ../2636188.1681824837@sss.pgh.pa.us/
Also on: postgresql.org/message-id/2636188.1681824837@sss.pgh.pa.us
copy link · copy postgr.es
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, guofenglinux@gmail.com, pgsql-hackers@lists.postgresql.org
Subject: Re: Allowing parallel-safe initplans
In-Reply-To: <2636188.1681824837@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