model-writtenrun 8617 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- David Rowley proposed removing redundant constraint dependency tracking in #1, explaining that this planner optimization relies on relcache invalidation, unlike dependency tracking needed to protect views, and initially suggested backpatching to 9.6.
- Tom Lane requested comments emphasizing invalidation when the primary key's underlying index is dropped, suggested potentially using unique indexes with non-null columns, and opposed backpatching because this was not a bug fix and deserved beta testing in #2.
- David revised only the comments in #3, accepted keeping the change on the development branch, and deferred extending the optimization to unique indexes, suggesting consideration after branching for PG14.
- Tom approved the revised patch in #4.
- David committed #3 unchanged as 5b736e9cf9 and announced completion in #5; the cleanup landed without backpatching, while broader unique-index support remained future work.