model-writtenrun 9083 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Justin Pryzby reported a PostgreSQL 12 REINDEX CONCURRENTLY crash without a core dump in #1, and Michael Paquier initially could not reproduce it with partitioned tables in #2.
- A second crash supplied a backtrace showing a NULL holder pointer in WaitForLockersMultiple(); Justin identified the progress-reporting race and proposed guarding the dereference in #3.
- Alvaro Herrera found the same mistake in WaitForOlderSnapshots() and attached a fix for both locations in #5, then revised only the comments in #7 after Justin's feedback in #6, noting that CREATE INDEX CONCURRENTLY was also vulnerable.
- Michael Paquier checked the relevant callers in #8 and reproduced the crash with a debugger in #9, but explained that a deterministic isolation test would require precisely timed connection termination.
- Alvaro Herrera committed #7 unchanged as 0d21f919eb, backpatched the fix to PostgreSQL 12, and announced completion in #10.
- Justin reported a suspected occurrence during DROP INDEX CONCURRENTLY in #11; Michael explained the shared index_drop() path and proposed an inline comment documenting its unconditional progress reporting in #13.
- Alvaro considered disabling progress reporting in #14, but Michael explained in #15 that REINDEX CONCURRENTLY still needed waiting-process information during concurrent deletion, so the behavior was retained.
- Alvaro moved the proposed explanation to the first WaitForLockers() call and referenced it from the second in #16; that inline proposal became the comment-only commit d2efb90dba, also backpatched to PostgreSQL 12.
- Alvaro confirmed the comment update was committed in #18, and Michael's closing acknowledgment in #19 left both changes landed with no outstanding patch revision.