pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
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: Wed, 24 Jul 2019 13:06:38 -0400
Message-ID: <30486.1563987998@sss.pgh.pa.us> (raw)
In-Reply-To: <VI1PR07MB5792A233AE1440BF45BBAAF487C60@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>
	<31206.1563918579@sss.pgh.pa.us>
	<VI1PR07MB5792A233AE1440BF45BBAAF487C60@VI1PR07MB5792.eurprd07.prod.outlook.com>

David Raymond <David.Raymond@tomtom.com> writes:
> The cost tweaks let me slash the size right down to where the dump is 150 kB, which I've attached. Don't know if the mailing list will strip it, but you're also directly in the To: list.

Thanks for the test case!

However ... I fail to reproduce any problem on HEAD or v11 branch tip.
After perusing the commit log, I believe the reason why not is this
post-11.4 bug fix:

https://git.postgresql.org/gitweb/?p=postgresql.git&a=commitdiff&h=14d8b539d

which I'd forgotten about, but it seems to match your problem exactly.
That makes this a duplicate of bug #15857.

Don't know if you're in a position to build from source, but if so,
that's just about a one-line fix.  Otherwise, it looks like turning
off enable_parallel_hash would be the minimal workaround until 11.5
comes out next month.

			regards, tom lane





view thread (8+ messages)  latest in thread

Message-ID: <30486.1563987998@sss.pgh.pa.us>
Permalink:  ../30486.1563987998@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/30486.1563987998@sss.pgh.pa.us

 · 

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 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: <30486.1563987998@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> <VI1PR07MB5792A233AE1440BF45BBAAF487C60@VI1PR07MB5792.eurprd07.prod.outlook.com> <30486.1563987998@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