model-writtenrun 8180 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Michael Paquier reported that REINDEX SCHEMA/DATABASE/SYSTEM could fail when relations disappeared between enumeration and processing, and supplied existence checks, lock-aware table opening, and isolation tests in #1; he considered the complete fix too invasive to backpatch and floated a smaller stable-branch safeguard.
- Anastasia Lubennikova reviewed the patch and reported that it worked, but requested clearing REINDEXOPT_MISSING_OK when recursively reindexing a TOAST table because the main-table lock should prevent its concurrent removal #2.
- Michael incorporated the TOAST correction and clarified that missing-relation checks belong before session locks protect the completed index list in #3, and Anastasia accepted the revision in #4.
- Michael committed #3 as 1d65416661 with light comment and formatting edits, explaining the additional parent-lock comment in his completion notice #5.
- Justin Pryzby noticed that the new flag used (2 << 1) instead of the conventional (1 << 2), and warned that the equivalent expression could confuse future flag additions #6.
- Michael corrected the flag expression in 01767533e3 and confirmed completion in #7, leaving both the main change and its follow-up landed with no attached work outstanding.