Skip to content

Commit

Permalink
Only select dependencies in the pg_class catalog
Browse files Browse the repository at this point in the history
This makes sure we do not select dependencies form the pg_operator class or other similar things.

Fixes dimitri#1289
  • Loading branch information
Mike Noordermeer authored and marcokrikke committed Nov 30, 2023
1 parent 3e06d1b commit d5f4f00
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pgsql/sql/list-all-fkeys.sql
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
JOIN pg_class cf on r.confrelid = cf.oid
JOIN pg_namespace nf on cf.relnamespace = nf.oid
JOIN pg_depend d on d.classid = 'pg_constraint'::regclass
and d.refclassid = 'pg_class'::regclass
and d.objid = r.oid
and d.refobjsubid = 0
where r.contype = 'f'
Expand Down

0 comments on commit d5f4f00

Please sign in to comment.