model-writtenrun 9064 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Michael Paquier reported in #1 that REINDEX CONCURRENTLY opened the old index where it intended to open the newly created index, causing duplicate session locks on the old index and leaving the new index unprotected.
- In #1, Michael supplied a one-line correction to use newIndexId and asked whether anyone objected; the supplied thread contains no replies or reviewer activity.
- Michael committed the patch as 5d3500da72, with only a comment clarification about the session-level lock; the commit records backpatching through PostgreSQL 12.