model-writtenrun 7906 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Peter Eisentraut proposed replacing get_constraint_index()'s dependency scan with a syscache lookup of pg_constraint.conindid, while treating a possible get_index_constraint() rewrite as separate work #1.
- Matthias van de Meent tested the patch successfully with installcheck-world and asked for the commit message to explain moving the function into lsyscache.c #2.
- Tom Lane supported the relocation because the function had become a simple catalog lookup, and Michael Paquier endorsed the cleanup #3 #4.
- Peter committed the patch's code unchanged with an expanded explanatory commit message as 8b069ef5dc, then announced completion #5.
- Peter left get_index_constraint() unchanged because its existing pg_depend scan can use an index whereas the proposed pg_constraint scan could not, closing the thread with the submitted patch committed #5.