Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hdDz4-00043Z-M6 for pgsql-bugs@arkaria.postgresql.org; Tue, 18 Jun 2019 13:17:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hdDz3-0006qG-Af for pgsql-bugs@arkaria.postgresql.org; Tue, 18 Jun 2019 13:17:09 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hdDz2-0006q8-W7 for pgsql-bugs@lists.postgresql.org; Tue, 18 Jun 2019 13:17:09 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hdDz0-0003O9-LE for pgsql-bugs@lists.postgresql.org; Tue, 18 Jun 2019 13:17:07 +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 x5IDH280020973; Tue, 18 Jun 2019 09:17:02 -0400 From: Tom Lane To: Thomas Munro cc: krujkov@gmail.com, PostgreSQL mailing lists Subject: Re: BUG #15857: Parallel Hash Join makes join instead of exists In-reply-to: References: <15857-d1ba2a64bce0795e@postgresql.org> Comments: In-reply-to Thomas Munro message dated "Tue, 18 Jun 2019 23:17:07 +1200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <20971.1560863822.1@sss.pgh.pa.us> Date: Tue, 18 Jun 2019 09:17:02 -0400 Message-ID: <20972.1560863822@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Thomas Munro writes: > Here's a tidier version with a comment and commit message. It seems a little weird to make the join-type test be the first one in the if() condition: it doesn't seem like the most important thing to test, and it doesn't agree with the way you've worded the comment. Otherwise +1. regards, tom lane