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 1nuEn0-0006Rs-Sp for pgsql-bugs@arkaria.postgresql.org; Thu, 26 May 2022 14:48:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nuEmz-000648-KU for pgsql-bugs@arkaria.postgresql.org; Thu, 26 May 2022 14:48:37 +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 1nuEmz-00063z-Ba for pgsql-bugs@lists.postgresql.org; Thu, 26 May 2022 14:48:37 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nuEmw-0008SM-Oq for pgsql-bugs@lists.postgresql.org; Thu, 26 May 2022 14:48:36 +0000 Received: from bruce by momjian.us with local (Exim 4.94.2) (envelope-from ) id 1nuEmp-00DaqH-IG; Thu, 26 May 2022 10:48:27 -0400 Date: Thu, 26 May 2022 10:48:27 -0400 From: Bruce Momjian To: Christophe Pettus Cc: Michael Paquier , Peter Geoghegan , Robert Haas , Alvaro Herrera , 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: References: <202205251643.2py5jjpaw7wy@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, May 26, 2022 at 07:41:28AM -0700, Christophe Pettus wrote: > > > > On May 26, 2022, at 07:40, Bruce Momjian wrote: > > > > Uh, if people don't know if they have used CREATE/REINDEX CONCURRENTLY > > in PG 14.0+, they are going to need to run amcheck on all btree indexes > > and reindex all non-btree indexes? That is going to be a painful > > message to deliver, and hear. :-( > > Unless we are 100% sure that amcheck will never return a false negative in this situation, we may have to recommend reindexing everything. Ouch. I assume we are then looking at reindexdb, which has a parallel option. I assume we can also recommend --concurrently on a patched PG 14.4, which might not be terrible since it would not cause downtime. I guess the command would be: $ reindexdb --all --concurrently --jobs ## Without reindexdb's features, this would be much more painful. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Indecision is a decision. Inaction is an action. Mark Batterson