model-writtenrun 8807 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Thomas Munro opened the thread with the announcement of 74618e77b4, which intended to prevent crashes when DSM slots were exhausted by falling back to a serial btree build, with backpatching to PostgreSQL 11 #1.
- Peter Geoghegan reported that the change had completely disabled parallel index builds #2, and Thomas identified that the check needed to follow InitializeParallelDSM() and release any snapshot acquired before the fallback #3.
- Thomas posted the corrective patch and a testing-only DSM fault injector, reporting that ordinary and concurrent index builds started workers or fell back as expected; fuzzing also exposed other problems that he planned to discuss separately #4.
- Peter suggested adding a wait argument to _bt_end_parallel() to reuse its cleanup #5, then withdrew that suggestion because the required variables were not initialized at this point and accepted the patch #6.
- Thomas committed the nbtsort.c correction unchanged as d9fe702a2c, leaving out the testing-only fault injector, and confirmed the push #7; Peter's final acknowledgment closed the thread with the corrective fix landed #8.