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 1nw3Ge-0004MP-Ft for pgsql-bugs@arkaria.postgresql.org; Tue, 31 May 2022 14:54:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nw3Gd-0005ye-Ao for pgsql-bugs@arkaria.postgresql.org; Tue, 31 May 2022 14:54:43 +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 1nw3Gd-0005yV-3D for pgsql-bugs@lists.postgresql.org; Tue, 31 May 2022 14:54:43 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nw3Ga-00015K-58 for pgsql-bugs@lists.postgresql.org; Tue, 31 May 2022 14:54:42 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 4D362320091B; Tue, 31 May 2022 10:54:36 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Tue, 31 May 2022 10:54:37 -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=1654008875; x=1654095275; bh=M WI1synTrKDt29ehm4mIDmMdnY6D+jlLIuiUlbTTUCE=; b=igxvcfX9GybCecX8k 2GpnsxV3sfAY/m3wK/gd1DNWeH3iT1gjN3foGfF26IkQ3lLbqss97kmBmDrso9aH gWTVAtiIf//z+UAeMQEsUsffh900fNTLlCrQdQvxmHJ4boX9Y7ft2I27qk4psGTd WBTgESNQtGfjw81YqlRsdZpN6O/kVRdQbtlw9QzLVrkUn7IKqoGOfrkxqHZqPH8O wgR1GdbH6TyDoeP0D6GtP6XL+uvHRZ3N8irjvPeYhGywLNLepQDG32ixWifF1Q3W o2j38YG2gWGmRRQNTrp2oR4dtACfx0X+ZQgHsCrD4ISPoG2I2VifH4THSnM7NsiP w/+Xg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrkeekgdekudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvvefukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpeetlhhvrghr ohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgqe enucggtffrrghtthgvrhhnpedvkedtffduffdtffffheffhfejjefhgfeiueeukeejkeff gfdufffhudffffeuveenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtohhmne cuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhh vghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 31 May 2022 10:54:35 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 2A5772A0843; Tue, 31 May 2022 16:54:34 +0200 (CEST) Date: Tue, 31 May 2022 16:54:34 +0200 From: Alvaro Herrera To: Christophe Pettus Cc: Bruce Momjian , Michael Paquier , Peter Geoghegan , Robert Haas , Andres Freund , Andrey Borodin , =?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: <202205311454.n222v2nziqvt@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <202205311443.5xshc44kp7ll@alvherre.pgsql> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2022-May-31, Alvaro Herrera wrote: > If there is none, the recommendation should be to use amcheck on all > btree indexes and reindex those that have the problem; and reindex all > indexes of other AMs that could have been reindexed or created > concurrently in 14beta1 or later (implying: an index that was created in > 13 and pg_upgraded but not touched afterwards is not at risk). Another possibility for very large indexes may be to disable all types of index scans, then apply no-op UPDATEs to the unindexed rows until the migrate to some other heap block, then vacuum. After that, amcheck should issue a clean report. This is much less intrusive than reindexing possibly several TB of data. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/