model-writtenrun 2749 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Yoran Heling reported that dropping a custom type left operator-family entries that blocked pg_upgrade, prevented dropping the family, and produced unrestorable dumps, with reproduction on PostgreSQL 15.10 and 17.2 #1.
- Tom Lane explained that retaining the operator family itself was legitimate, but a support-function entry lacked a dependency on the deleted type; he considered attaching it to the operator class or explicitly recording type dependencies, alongside making object descriptions tolerate existing corruption #2.
- Peter Geoghegan agreed with the diagnosis and cautioned against custom operator classes relying on built-in equal-image functions; his response preceded the patches and did not review their implementation #3.
- Tom Lane submitted both fixes, choosing explicit type dependencies and retaining defensive handling for operator entries even though that path might currently be unreachable; he verified that the first fix allowed dropping the broken family and declined a dedicated regression test because extension ownership complicated reproducing the case #4.
- The object-description fix from #4 landed unchanged apart from branch context as 531cbd8b74, allowing descriptions to display unknown types instead of preventing cleanup.
- The dependency fix from #4 landed as 725d981028, adapted to older dependency APIs and without the pinned-type optimization; the thread ended with the patches proposed, and both fixes were committed the following day with backports to all supported branches.