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 1nw70U-0004iB-HB for pgsql-bugs@arkaria.postgresql.org; Tue, 31 May 2022 18:54:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nw70T-0004cR-CZ for pgsql-bugs@arkaria.postgresql.org; Tue, 31 May 2022 18:54:17 +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 1nw70T-0004cI-4C for pgsql-bugs@lists.postgresql.org; Tue, 31 May 2022 18:54:17 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nw70M-0001mR-Mm for pgsql-bugs@lists.postgresql.org; Tue, 31 May 2022 18:54:16 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id B7ED23200AED; Tue, 31 May 2022 14:54:08 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Tue, 31 May 2022 14:54:09 -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=1654023248; x=1654109648; bh=h r85LMdzOilaCkSq7kv+I94o3dIFTmQnKh6FgmMsfv4=; b=Eb4MLyfroJjQqDEGs dRz5L/mi6ZwphuG7oQZ6mqfog+n1yL4JJcA91N4CtGgg69pe/VR3iH64mkxkVxyH P6ZLFqHWuGeYpWUDx80u7bX6VxUg3H32GMpOVCOv5kPlwD0jPFJOGPvzcuIgMELP SqmJyoTqHF+etKHh0Kzjn4hU7Egb3xlpaxIxngO14JLIlmR0PeSDSQgiTMINYWiz IeTEzfa/LOSHzCzVDW8B5fwEm/09UK8AdKvsmDZXVBYTDso1jMOp99rnmUOdMR9M IL7aiOTIgfo5Ufq76frRI6wCIeeHRcGGkHk9aP1Jhyllb9Sp/SvJjbCXxMR+T/KW 5YVLA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrkeekgddufedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheptehlvhgr rhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh eqnecuggftrfgrthhtvghrnhepvdektdffudfftdffffehfffhjeejhffgieeuueekjeek fffgudffhfduffffueevnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomh enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhv hhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 31 May 2022 14:54:07 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 6DEFB2A0608; Tue, 31 May 2022 20:54:05 +0200 (CEST) Date: Tue, 31 May 2022 20:54:05 +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: <202205311854.25lm54rtkg2y@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: > On Tue, May 31, 2022 at 11:42 AM Alvaro Herrera wrote: > > Hmm ... Exactly what code is being tested here? I see in one of these > > backtraces that there is a reference to a function called > > heap_prune_from_root, but I can't find that in the Postgres sources. > > This includes a patch from me, to make pruning more robust. It could > technically be a bug in my patch, though a bug revealed by my patch > seems quite possible too. Ah, I see. Well, the explanation that depends on Xmin doesn't apply to this case. I'm not saying there are no bugs in the other two commits, just that such bug(s) have a different explanation, so it makes sense to revert separately. -- Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/ "La rebeldía es la virtud original del hombre" (Arthur Schopenhauer)