From: Tom Lane <tgl@sss.pgh.pa.us>
To: David Raymond <David.Raymond@tomtom.com>
Cc: pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>
Subject: Re: BUG #15922: Simple select with multiple exists filters returns duplicates from a primary key field
Date: Tue, 23 Jul 2019 17:49:39 -0400
Message-ID: <31206.1563918579@sss.pgh.pa.us> (raw)
In-Reply-To: <VI1PR07MB579234388D19A00C5C7B2A4787C70@VI1PR07MB5792.eurprd07.prod.outlook.com>
References: <15922-969d62a9b4d95ee1@postgresql.org>
<7671.1563904324@sss.pgh.pa.us>
<VI1PR07MB5792B53637F1DDC0A8A30D2B87C70@VI1PR07MB5792.eurprd07.prod.outlook.com>
<VI1PR07MB579234388D19A00C5C7B2A4787C70@VI1PR07MB5792.eurprd07.prod.outlook.com>
David Raymond <David.Raymond@tomtom.com> writes:
> Update so far: I did manage to go and replace all the UUIDs with random ones and it's still doing it, so I do have a sanitized version now. No real luck with trimming down the record count though. When deleting too many records it would change the query plan to something not broken. Even after replacing the UUIDs and not deleting anything I ran analyze and it came up clean, and I had to vacuum analyze for it to pick the broken plan again. (That example pasted below) The dump file is at least consistently doing the same thing where immediately after load the plan chosen gives a consistent answer, but once analyzed it gives the bad duplicates. As it stands the dump file is 130 MB (30MB zipped), is that too big to send in to you?
Given that the problem seems to be specific to parallel query, likely
the reason is that reducing the number of rows brings it below the
threshold where the planner wants to use parallel query. So you could
probably reduce the parallel-query cost parameters to get a failure
with a smaller test case. However, if you don't feel like doing that,
that's fine.
Please *don't* send a 30MB message to the whole list, but you can
send it to me privately.
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.Raymond@tomtom.com
Subject: Re: BUG #15922: Simple select with multiple exists filters returns duplicates from a primary key field
In-Reply-To: <31206.1563918579@sss.pgh.pa.us>
References: <15922-969d62a9b4d95ee1@postgresql.org> <7671.1563904324@sss.pgh.pa.us> <VI1PR07MB5792B53637F1DDC0A8A30D2B87C70@VI1PR07MB5792.eurprd07.prod.outlook.com> <VI1PR07MB579234388D19A00C5C7B2A4787C70@VI1PR07MB5792.eurprd07.prod.outlook.com> <31206.1563918579@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