model-writtenrun 7922 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Yulin PEI reported that VACUUM FULL in standalone mode could assert while rebuilding a btree index in parallel, and supplied a patch guarding index_build() with standalone-environment checks #1.
- Masahiko Sawada reproduced the failure with CREATE INDEX and recommended using IsUnderPostmaster #2; Yulin adopted that simplification and removed the proposed standalone-mode macro #3.
- Tom Lane argued that plan_create_index_workers() should enforce this parallel-safety restriction, supplied a revised patch placing the guard beside max_parallel_maintenance_workers, and used parallel VACUUM as the consistency model #4.
- Tom Lane committed that revised patch unchanged as 275b3411d9, crediting Yulin with the report and patch and backpatching the fix through PostgreSQL 11.
- After the commit, Masahiko expressed agreement #5, and Yulin endorsed the placement after examining compute_parallel_vacuum_workers() #6; the thread ended with the fix landed and no outstanding work identified.