Re: BUG #15324: Non-deterministic behaviour from parallelised sub-query

From: Andres Freund <andres(at)anarazel(dot)de>
To: andy(at)prestigedigital(dot)com, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #15324: Non-deterministic behaviour from parallelised sub-query
Date: 2018-08-13 16:35:18
Message-ID: 20180813163518.gqvu2kqwr6uj75vj@alap3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hi,

On 2018-08-13 16:14:03 +0000, PG Bug reporting form wrote:
> Execute this query (multiple times!)
>
> select * from events where account in (select account from events where
> data->>'page' = 'success.html' limit 3);

Well, the subselect with thelimit going to return different results from
run to run. Unless you add an ORDER BY there's no guaranteed order in
which tuples are returned. So I don't think it's surprising that you're
getting results that differ between runs.

Greetings,

Andres Freund

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Andrew Fletcher 2018-08-13 16:40:49 Re: BUG #15324: Non-deterministic behaviour from parallelised sub-query
Previous Message Stephen Frost 2018-08-13 16:19:04 Re: BUG #15323: wal_keep_segments must be >= 1 for WAL archiving + streaming to work