model-writtenrun 8817 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Thomas Munro reported that CreateParallelContext() can return a context with a NULL segment pointer, causing parallel CREATE INDEX to crash, and connected this to a reported pgsql-general failure in #1.
- Thomas supplied a patch in #1 that destroys the unusable parallel context, exits parallel mode, and falls back to a serial index build, with back-patching proposed through PostgreSQL 11.
- Peter Geoghegan reviewed the cleanup choice in #2, observed that _bt_end_parallel() could not be used there, and approved the patch.
- 74618e77b4 landed the code from #1 unchanged, crediting Nicola Contu as reporter and Peter Geoghegan as reviewer.
- Thomas confirmed the push in #3, closing the thread with its sole patch committed and no outstanding changes discussed.