Skip to content

Commit

Permalink
fix(ignore-extensions): add pg_depend.classid clause to introspection (
Browse files Browse the repository at this point in the history
  • Loading branch information
benjie authored Aug 22, 2018
1 parent 9fe9b3e commit 8e68052
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/graphile-build-pg/res/introspection-query.sql
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,10 @@ with
($2 is true or not exists(
select 1
from pg_catalog.pg_depend
where pg_depend.refclassid = 'pg_catalog.pg_extension'::pg_catalog.regclass and pg_depend.deptype = 'e' and pg_depend.objid = pro.oid
where pg_depend.refclassid = 'pg_catalog.pg_extension'::pg_catalog.regclass
and pg_depend.deptype = 'e'
and pg_depend.classid = 'pg_catalog.pg_proc'::pg_catalog.regclass
and pg_depend.objid = pro.oid
))
order by
pro.pronamespace, pro.proname
Expand Down Expand Up @@ -132,7 +135,10 @@ with
($2 is true or not exists(
select 1
from pg_catalog.pg_depend
where pg_depend.refclassid = 'pg_catalog.pg_extension'::pg_catalog.regclass and pg_depend.deptype = 'e' and pg_depend.objid = rel.oid
where pg_depend.refclassid = 'pg_catalog.pg_extension'::pg_catalog.regclass
and pg_depend.deptype = 'e'
and pg_depend.classid = 'pg_catalog.pg_class'::pg_catalog.regclass
and pg_depend.objid = rel.oid
))
order by
rel.relnamespace, rel.relname
Expand Down

0 comments on commit 8e68052

Please sign in to comment.