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 1qBulm-0002XV-E3 for pgsql-bugs@arkaria.postgresql.org; Wed, 21 Jun 2023 10:08:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1qBull-0000JX-5Q for pgsql-bugs@arkaria.postgresql.org; Wed, 21 Jun 2023 10:08:57 +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 1qBsAt-0002xG-D3 for pgsql-bugs@lists.postgresql.org; Wed, 21 Jun 2023 07:22:43 +0000 Received: from mailg110.ethz.ch ([2001:67c:10ec:5605::21]) by magus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qBsAq-003mBT-To for pgsql-bugs@lists.postgresql.org; Wed, 21 Jun 2023 07:22:42 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inf.ethz.ch; s=key1-q2-2022; t=1687332158; h=From:Subject:Date:Message-ID:To:Cc :MIME-Version:Content-Type:In-Reply-To:References; bh=4DcxS6KsUz5U4aNRDI0 3mBjHTPtboL7TnwdH57kmh/c=; b=jzZMNeZe/ryXTMSatetbzRcuTEZNzMWmbjfOAmAo/BII uRAiN9iXVcUX18ZqHVKe0vb1lG4hYNQwpJLY7VhGH8Dl/cjqDkAnadS/1+ubCNvCPiKw/+ROn hGk/32RrvBuDGsqd7RI1c69LimHKQ12/3w7Rily4/z13p1Al+Y7rUEi7GrfePwDhVC7/l1AtM R2geendG4ZH6dSkHMRFj4reqN6pGNzVZEl/xNpAUCTiMk52/fR579RmkbwuXcWj/o0iaFDGGa OJ3zH6lLpU1EAFO82recNQc1tyd6oseWJshABXB2mIXxDeZbkbAMeXujP5Q6NdKDjeA73xd38 JF17AQ==; Received: from mailm211.d.ethz.ch (2001:67c:10ec:5603::25) by mailg110.ethz.ch (2001:67c:10ec:5605::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Wed, 21 Jun 2023 09:22:38 +0200 Received: from [192.168.1.35] (77.109.152.204) by mailm211.d.ethz.ch (2001:67c:10ec:5603::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Wed, 21 Jun 2023 09:22:38 +0200 Content-Type: multipart/alternative; boundary="------------jdYRzOiGUAq0xZ22fEOkh5iO" Message-ID: <5095c4dd-dcce-1af2-0be3-9fba11db6c96@inf.ethz.ch> Date: Wed, 21 Jun 2023 09:22:38 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: BUG #17986: Inconsistent results of SELECT affected by btree index To: Tom Lane , Tomas Vondra CC: References: <17986-6ebf8b5d2c3a4f6e@postgresql.org> <3689741.1687320665@sss.pgh.pa.us> Content-Language: en-US From: Zu-Ming Jiang In-Reply-To: <3689741.1687320665@sss.pgh.pa.us> X-Originating-IP: [77.109.152.204] X-ClientProxiedBy: mailm213.d.ethz.ch (2001:67c:10ec:5603::27) To mailm211.d.ethz.ch (2001:67c:10ec:5603::25) X-DKIM-Signer: DkimX (v3.20.320) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --------------jdYRzOiGUAq0xZ22fEOkh5iO Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit Thanks for your information! I checked it again. Seems this bug can be reproduced when I used "quick-fix-for-bug-17985.patch" for bug 17985, but cannot be reproduced after I used "better-fix-for-bug-17985.patch". So it was fixed by the patch "better-fix-for-bug-17985.patch". Best wishes, Zuming ------------------------------------------------------------------------ *From:* Tom Lane [mailto:tgl@sss.pgh.pa.us] *Sent:* Wednesday, June 21, 2023 at 6:11 AM *To:* Tomas Vondra *Cc:* zuming.jiang@inf.ethz.ch; pgsql-bugs@lists.postgresql.org *Subject:* BUG #17986: Inconsistent results of SELECT affected by btree index > Tomas Vondra writes: >> On 6/20/23 22:54, PG Bug reporting form wrote: >>> My fuzzer finds a correctness bug in Postgres, which makes Postgres return >>> inconsistent results. >> I can't reproduce this with current master - perhaps one of the commits >> since efeb12ef0b fixes this too? > It looks like this is another manifestation of the hashjoin bug > fixed in 45392626c. > > regards, tom lane --------------jdYRzOiGUAq0xZ22fEOkh5iO Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: 7bit Thanks for your information! I checked it again. Seems this bug can be reproduced when I used "quick-fix-for-bug-17985.patch" for bug 17985, but cannot be reproduced after I used "better-fix-for-bug-17985.patch". So it was fixed by the patch "better-fix-for-bug-17985.patch".

Best wishes,
Zuming


From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
Sent: Wednesday, June 21, 2023 at 6:11 AM
To: Tomas Vondra
Subject: BUG #17986: Inconsistent results of SELECT affected by btree index

Tomas Vondra <tomas.vondra@enterprisedb.com> writes:
On 6/20/23 22:54, PG Bug reporting form wrote:
My fuzzer finds a correctness bug in Postgres, which makes Postgres return
inconsistent results.

      
I can't reproduce this with current master - perhaps one of the commits
since efeb12ef0b fixes this too?
It looks like this is another manifestation of the hashjoin bug
fixed in 45392626c.

			regards, tom lane

--------------jdYRzOiGUAq0xZ22fEOkh5iO--