Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cBsLb-0002BW-8d for pgsql-bugs@arkaria.postgresql.org; Wed, 30 Nov 2016 00:02:03 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cBsLa-0001vf-Og for pgsql-bugs@arkaria.postgresql.org; Wed, 30 Nov 2016 00:02:02 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cBsKw-0001Cn-4R for pgsql-bugs@postgresql.org; Wed, 30 Nov 2016 00:01:22 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cBsKt-0006yR-9c for pgsql-bugs@postgresql.org; Wed, 30 Nov 2016 00:01:21 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id uAU01GJS014357; Tue, 29 Nov 2016 19:01:16 -0500 From: Tom Lane To: Michael Day cc: pgsql-bugs@postgresql.org Subject: Re: parallel sequential scan returns extraneous rows In-reply-to: <6388A361-BE20-44B5-9F07-58ABDE24DFAD@rcmail.com> References: <22908.1480436353@sss.pgh.pa.us> <6388A361-BE20-44B5-9F07-58ABDE24DFAD@rcmail.com> Comments: In-reply-to Michael Day message dated "Tue, 29 Nov 2016 16:39:59 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <14355.1480464076.1@sss.pgh.pa.us> Date: Tue, 29 Nov 2016 19:01:16 -0500 Message-ID: <14356.1480464076@sss.pgh.pa.us> X-Pg-Spam-Score: -4.8 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Michael Day writes: > I was able to reproduce with this set of data. Ah, thanks for the test case! Looks like the handling of JOIN_UNIQUE_INNER cases for parallel plans is completely confused --- it forgot about needing to unique-ify the inner rel, and I'm rather surprised it didn't trip over some Asserts while at it. Will fix, thanks. 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