From: | Bruce Momjian <bruce(at)momjian(dot)us> |
---|---|
To: | Christophe Pettus <xof(at)thebuild(dot)com> |
Cc: | Michael Paquier <michael(at)paquier(dot)xyz>, Peter Geoghegan <pg(at)bowt(dot)ie>, Robert Haas <robertmhaas(at)gmail(dot)com>, Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>, Andres Freund <andres(at)anarazel(dot)de>, Andrey Borodin <x4mmm(at)yandex-team(dot)ru>, Петър Славов <pet(dot)slavov(at)gmail(dot)com>, PostgreSQL mailing lists <pgsql-bugs(at)lists(dot)postgresql(dot)org> |
Subject: | Re: BUG #17485: Records missing from Primary Key index when doing REINDEX INDEX CONCURRENTLY |
Date: | 2022-05-26 14:48:27 |
Message-ID: | Yo+TOynsPE1Od8jI@momjian.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
On Thu, May 26, 2022 at 07:41:28AM -0700, Christophe Pettus wrote:
>
>
> > On May 26, 2022, at 07:40, Bruce Momjian <bruce(at)momjian(dot)us> 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 <bruce(at)momjian(dot)us> https://momjian.us
EDB https://enterprisedb.com
Indecision is a decision. Inaction is an action. Mark Batterson
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2022-05-26 18:16:21 | Re: Unable to connect to PostgreSQL DB as root user when private key is owned by root with permission 640 |
Previous Message | Christophe Pettus | 2022-05-26 14:41:28 | Re: BUG #17485: Records missing from Primary Key index when doing REINDEX INDEX CONCURRENTLY |