Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nMXMK-0004uA-12 for pgsql-bugs@arkaria.postgresql.org; Tue, 22 Feb 2022 15:45:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nMXLm-00011w-2E for pgsql-bugs@arkaria.postgresql.org; Tue, 22 Feb 2022 15:45:14 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nMXLl-00011n-Q6 for pgsql-bugs@lists.postgresql.org; Tue, 22 Feb 2022 15:45:13 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nMXLi-0007ly-Vk for pgsql-bugs@lists.postgresql.org; Tue, 22 Feb 2022 15:45:12 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 21MFj8k0701249; Tue, 22 Feb 2022 10:45:08 -0500 From: Tom Lane To: "David G. Johnston" cc: Martin Kos , "pgsql-bugs@lists.postgresql.org" Subject: Re: Bug in execution of EXISTS and IN clauses for large tables In-reply-to: References: Comments: In-reply-to "David G. Johnston" message dated "Tue, 22 Feb 2022 07:21:05 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <701247.1645544708.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Tue, 22 Feb 2022 10:45:08 -0500 Message-ID: <701248.1645544708@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "David G. Johnston" writes: > This seems like a decent report (haven’t played with it), still, version > 11.1! Indeed. I can't see any problem in 11.current --- for me, the first four queries all give 44272445, the next 72002328, and the last two 60000000. So either we fixed it since 11.1, or the problem requires some nondefault setting that wasn't mentioned. I'm not particularly interested in bisecting to see where it was fixed. regards, tom lane