From: Tom Lane <tgl@sss.pgh.pa.us>
To: Pavel Stehule <pavel.stehule@gmail.com>
Cc: Marko Tiikkaja <marko@joh.to>
Cc: Andres Freund <andres@anarazel.de>
Cc: andy@prestigedigital.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15324: Non-deterministic behaviour from parallelised sub-query
Date: Mon, 13 Aug 2018 14:04:47 -0400
Message-ID: <22819.1534183487@sss.pgh.pa.us> (raw)
In-Reply-To: <CAFj8pRDkxQGVCkwg30BjbgqQfBO67h95BBHBh=g4r0TGf0b2jg@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>
Pavel Stehule <pavel.stehule@gmail.com> writes:
> 2018-08-13 19:26 GMT+02:00 Tom Lane <tgl@sss.pgh.pa.us>:
>> Likely, we need to treat the presence of a LIMIT/OFFSET in a sub-select
>> as making it parallel-unsafe, for exactly the reason that that makes
>> its results non-deterministic.
> Isn't it default behave of LIMIT/OFFSET without ORDER BY clause?
In principle, the planner could prove in some cases that the results
were deterministic even with LIMIT/OFFSET. BuT I doubt it's worth
the trouble. I certainly wouldn't advocate for such logic to be
part of a back-patched bug fix.
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, 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: <22819.1534183487@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>
* 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