pgsql: Restore the previous semantics of get_constraint_index().

2022-03-11 Thread Tom Lane
Restore the previous semantics of get_constraint_index(). Commit 8b069ef5d changed this function to look at pg_constraint.conindid rather than searching pg_depend. That was a good performance improvement, but it failed to preserve the exact semantics. The old code would only return an index that

pgsql: Restore the previous semantics of get_constraint_index().

2022-03-11 Thread Tom Lane
Restore the previous semantics of get_constraint_index(). Commit 8b069ef5d changed this function to look at pg_constraint.conindid rather than searching pg_depend. That was a good performance improvement, but it failed to preserve the exact semantics. The old code would only return an index that