Do not use
pg_depend against postgres 9.0+
Starting in version 9.0 of postgres,
This commit uses
Previously, `getImportedExportedKeys` needed to use `pg_depend` to determine the index that supported a foreign key constraint. This was done by joining `pg_depend` with `pg_constraint` to find the dependency between the foreign key constraint and a row in `pg_class` with type index. Starting in version 9.0 of postgres, `pg_constraint` was extended with the `conindid` column. This column gives us exactly what we want: for foreign key constraint rows, `conindid` is the `oid` of the index that supports the constraint. This commit uses `pg_constraint.conindid` when the server version is new enough instead of joining against `pg_depend`.
Current coverage is 63.23% (diff: 66.66%)
@@ master #689 diff @@ ========================================== Files 150 150 Lines 14702 14708 +6 Methods 0 0 Messages 0 0 Branches 2907 2909 +2 ========================================== + Hits 9108 9301 +193 + Misses 4450 4217 -233 - Partials 1144 1190 +46