Re: BUG #17485: Records missing from Primary Key index when doing REINDEX INDEX CONCURRENTLY
Alvaro Herrera <alvherre@alvh.no-ip.org>
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Christophe Pettus <xof@thebuild.com>
Cc: Bruce Momjian <bruce@momjian.us>, Michael Paquier <michael@paquier.xyz>, Peter Geoghegan <pg@bowt.ie>, Robert Haas <robertmhaas@gmail.com>, Andres Freund <andres@anarazel.de>, Andrey Borodin <x4mmm@yandex-team.ru>, Петър Славов <pet.slavov@gmail.com>, PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Date: 2022-05-31T14:54:34Z
Lists: pgsql-bugs
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/
Commits
-
Revert changes to CONCURRENTLY that "sped up" Xmin advance
- e28bb8851969 15.0 landed
- 042b584c7f7d 14.4 landed
-
Fix possible HOT corruption when RECENTLY_DEAD changes to DEAD while pruning.
- 18b87b201f73 15.0 cited