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 1nw7du-0006GA-0r for pgsql-bugs@arkaria.postgresql.org; Tue, 31 May 2022 19:35:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nw7ds-0007nq-Jr for pgsql-bugs@arkaria.postgresql.org; Tue, 31 May 2022 19:35:00 +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 1nw7ds-0007nh-BW for pgsql-bugs@lists.postgresql.org; Tue, 31 May 2022 19:35:00 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nw7dp-0003kK-6x for pgsql-bugs@lists.postgresql.org; Tue, 31 May 2022 19:34:59 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id C0D623200AA1; Tue, 31 May 2022 15:34:53 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Tue, 31 May 2022 15:34:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1654025693; x=1654112093; bh=b Cb6fTidMOi0fo7Ti+NaEy8inW7hQdaJfahEPNUg2w0=; b=hbZEFsKRLxagMjUEH 8C9TZby5/rQIlBJVI+rod1RtiXLkc4gAuKw+KdLZGMi3usZ0bpJNTMtVqFNcsyFE SI0T5GfW5yfAP7I3vuI4V5nykfo8To4QPm6wvjB9S2NLy8S+Gfa2C1U5Uhqus+G4 PY/cOfzOw3YrxsTNuSlkJzPMc5D3f4e2HA0CBW27T22cwxv7Ven+itYoVIGEX/+D 6OorFE1qaD1KzBDe68xziy8Cn0gcEbhSqHBvFE4Stg73UiXtq8vjs3p36kKrF1Va DpwFRtggFZ18m9mQHnTB70w8gtbkT7GbCIjJn3S+elYXgl0G+AuLVmuyQcJ03aFk jKH2Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrkeekgddufeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheptehlvhgr rhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh eqnecuggftrfgrthhtvghrnhepkeefieehkeekffdtffeggedtffelkeeigfduvdekgfdu gfeluedtiefhkeetudfgnecuffhomhgrihhnpehgihhthhhusgdrtghomhdpvghnthgvrh hprhhishgvuggsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehm rghilhhfrhhomheprghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 31 May 2022 15:34:52 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 0E7DE2A036F; Tue, 31 May 2022 21:34:50 +0200 (CEST) Date: Tue, 31 May 2022 21:34:50 +0200 From: Alvaro Herrera To: Peter Geoghegan Cc: Andrey Borodin , Andres Freund , Robert Haas , Michael Paquier , =?utf-8?B?0J/QtdGC0YrRgCDQodC70LDQstC+0LI=?= , PostgreSQL mailing lists Subject: Re: BUG #17485: Records missing from Primary Key index when doing REINDEX INDEX CONCURRENTLY Message-ID: <202205311934.c4poxkuoy3xm@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2022-May-31, Peter Geoghegan wrote: > The assertion failure takes place in heapam_index_build_range_scan(), > at the point that it is called by amcheck itself -- during an > opportunistic prune that occurs in passing. This is the specific > assertion that fails: > > https://github.com/x4m/postgres_g/blob/09d76bdc2528b476ef2f04c793061dcbf23372b5/src/backend/access/heap/pruneheap.c#L762 > > Another bug in HEAD definitely seems possible here, but it's hard to > know without careful testing. The failure that we see is limited to > the "macOS - Monterey" run, which only fails on this new test. Actually, it fails on Linux, FreeBSD and macOS -- it's only that one particular version of the test fails in macOS and the other fails in the other two systems. But both of those failures occur in this assertion. -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/