model-writtenrun 8193 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Michael Paquier reported that a failed DROP INDEX CONCURRENTLY could leave an invalid index marked as a replica identity, allowing a later REINDEX to produce multiple replica-identity indexes and inconsistent relcache selection #1.
- Michael attached a patch clearing indisreplident alongside indisvalid and adding assertions, and proposed fixing only the development branch because the failure sequence was unlikely in practice #1.
- Dmitry Dolgov reviewed the patch and asked whether index_concurrently_swap() required corresponding handling #2.
- In the thread’s final message, Michael explained that concurrent reindexing already copied the replica-identity flag to the new index and cleared it on the old index #3.
- Michael subsequently committed the complete patch from #1 as 9511fb37ac, adding only a relocation of the existing swap-time reset; the commit credited Dmitry’s review and explicitly declined backpatching.