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 1pw6Xp-0000dB-KH for pgsql-bugs@arkaria.postgresql.org; Mon, 08 May 2023 19:29:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pw6Xo-00015x-Dy for pgsql-bugs@arkaria.postgresql.org; Mon, 08 May 2023 19:29:12 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pw6Xo-00015o-6J for pgsql-bugs@lists.postgresql.org; Mon, 08 May 2023 19:29:12 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pw6Xl-001QUf-C4 for pgsql-bugs@lists.postgresql.org; Mon, 08 May 2023 19:29:11 +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 348JT6H8455352; Mon, 8 May 2023 15:29:06 -0400 From: Tom Lane To: joakim@cogmed.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #17925: Incorrect select query result In-reply-to: <17925-11423596f9c67cb8@postgresql.org> References: <17925-11423596f9c67cb8@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Mon, 08 May 2023 14:31:39 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <455350.1683574146.1@sss.pgh.pa.us> Date: Mon, 08 May 2023 15:29:06 -0400 Message-ID: <455351.1683574146@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk PG Bug reporting form writes: > Hello, this query returns different result depending on chosen execution > plan. This does seem fishy, but it's impossible to investigate with this amount of detail. Can you provide table declarations and sample data to go with the query? regards, tom lane