From: Tom Lane <tgl@sss.pgh.pa.us>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: Pavel Stehule <pavel.stehule@gmail.com>
Cc: Marko Tiikkaja <marko@joh.to>
Cc: Andres Freund <andres@anarazel.de>
Cc: andy@prestigedigital.com <andy@prestigedigital.com>
Cc: pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>
Subject: Re: BUG #15324: Non-deterministic behaviour from parallelised sub-query
Date: Mon, 13 Aug 2018 18:38:04 -0400
Message-ID: <4002.1534199884@sss.pgh.pa.us> (raw)
In-Reply-To: <CAKFQuwYO_WMdSu4hPZDU-mYuFSqX2+o2ZhjgH8Csy574zU=UuA@mail.gmail.com>
References: <153417684333.10284.11356259990921828616@wrigleys.postgresql.org>
<20180813163518.gqvu2kqwr6uj75vj@alap3.anarazel.de>
<CAL9smLBPZJOUWjHKgZOQaDO5FK+AkkX61BT06mpSfiNz4wdtgw@mail.gmail.com>
<21038.1534181205@sss.pgh.pa.us>
<CAFj8pRDkxQGVCkwg30BjbgqQfBO67h95BBHBh=g4r0TGf0b2jg@mail.gmail.com>
<22819.1534183487@sss.pgh.pa.us>
<CAKFQuwYO_WMdSu4hPZDU-mYuFSqX2+o2ZhjgH8Csy574zU=UuA@mail.gmail.com>
"David G. Johnston" <david.g.johnston@gmail.com> writes:
> Could the planner stick a materialize node there that feeds the same set of
> originally selected records to any parallel executors that end up pulling
> from it?
No. At least, Materialize as it stands doesn't help. There's no
provision for pushing rowsets to parallel workers, only pulling
from them, and it would be an extremely nontrivial thing to add
AFAICS (for one thing, it'd make the leader process even more of
a bottleneck than it is already).
Maybe you could do something with dumping a rowset into a tuplestore
and forcing that out to temp files on-disk before starting any of
the parallel workers, then letting them read it in from the temp
files. But that still looks like a lot of new work and completely
not fit for back-patching, even if we had it.
regards, tom lane
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-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, david.g.johnston@gmail.com, pavel.stehule@gmail.com, marko@joh.to, andres@anarazel.de, andy@prestigedigital.com
Subject: Re: BUG #15324: Non-deterministic behaviour from parallelised sub-query
In-Reply-To: <4002.1534199884@sss.pgh.pa.us>
References: <153417684333.10284.11356259990921828616@wrigleys.postgresql.org> <20180813163518.gqvu2kqwr6uj75vj@alap3.anarazel.de> <CAL9smLBPZJOUWjHKgZOQaDO5FK+AkkX61BT06mpSfiNz4wdtgw@mail.gmail.com> <21038.1534181205@sss.pgh.pa.us> <CAFj8pRDkxQGVCkwg30BjbgqQfBO67h95BBHBh=g4r0TGf0b2jg@mail.gmail.com> <22819.1534183487@sss.pgh.pa.us> <CAKFQuwYO_WMdSu4hPZDU-mYuFSqX2+o2ZhjgH8Csy574zU=UuA@mail.gmail.com> <4002.1534199884@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