From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Day <blake@rcmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: parallel sequential scan returns extraneous rows
Date: Tue, 29 Nov 2016 11:19:13 -0500
Message-ID: <22908.1480436353@sss.pgh.pa.us> (raw)
In-Reply-To: <D0E8A029-D1AC-42E8-979A-5DE4A77E4413@rcmail.com>
References: <D0E8A029-D1AC-42E8-979A-5DE4A77E4413@rcmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Michael Day <blake@rcmail.com> writes:
> I have found a nasty bug when using parallel sequential scans with an exists clause on postgresql 9.6.1. I have found that the rows returned using parallel sequential scan plans are incorrect (though I haven’t dug sufficiently to know in what ways). See below for an example of the issue.
Hm, looks like a planner error: it seems to be forgetting that the join
to "address" should be a semijoin. "address" should either be on the
inside of a "Semi" join (as in your first, correct-looking plan) or be
passed through a unique-ification stage such as a HashAgg. Clearly,
neither thing is happening in the second plan.
I couldn't reproduce this in a bit of trying, however. Can you come
up with a self-contained test case?
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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, blake@rcmail.com
Subject: Re: parallel sequential scan returns extraneous rows
In-Reply-To: <22908.1480436353@sss.pgh.pa.us>
References: <D0E8A029-D1AC-42E8-979A-5DE4A77E4413@rcmail.com> <22908.1480436353@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