model-writtenrun 9374 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Yaroslav Schekin reported that changing a column from integer to bigint under a partial exclusion constraint failed across PostgreSQL versions, with missing-relation errors on older releases and a duplicate-index-name error on newer ones #1.
- Tom Lane explained that a constraint index's WHERE clause creates direct column dependencies, causing ALTER COLUMN TYPE to attempt rebuilding both the constraint and its underlying index #2.
- Tom Lane supplied a patch that removes indexes belonging to constraints already scheduled for rebuilding before collecting index definitions, with regression coverage for primary-key, unique, ordinary exclusion, and partial exclusion constraints #2.
- The same patch corrected obsolete comments and changed a defensive check in get_constraint_index() from break to continue; Tom reported success on HEAD but had not yet tested back-patching #2.
- After the thread's final message, Tom Lane committed the patch unchanged as e76de88615, with backports to all supported branches; no further review or outstanding patch work appears in the supplied thread.