Re: BUG #17268: Possible corruption in toast index after reindex index concurrently
Noah Misch <noah@leadboat.com>
From: Noah Misch <noah@leadboat.com>
To: Andres Freund <andres@anarazel.de>
Cc: Alexey Ermakov <alexey.ermakov@dataegret.com>, Robert Haas <robertmhaas@gmail.com>, Maxim Boguk <maxim.boguk@gmail.com>, PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>, Peter Geoghegan <pg@bowt.ie>, Michael Paquier <michael@paquier.xyz>
Date: 2021-11-09T03:56:24Z
Lists: pgsql-bugs
On Mon, Nov 08, 2021 at 12:36:41PM -0800, Andres Freund wrote: > One possible way to fix this would be to make ReindexRelationConcurrently() > acquire a lock on the underlying table when reindexing a toast table. Another > to not release the lock in toast_save_datum(). The latter is more future-proof. Does it have material disadvantages?
Commits
-
Fix corruption of toast indexes with REINDEX CONCURRENTLY
- 5ed74d874f49 12.10 landed
- 9acea52ea3d4 13.6 landed
- 64ab21f0e5de 14.2 landed
- f99870dd8673 15.0 landed