From 8e68052b3f8bc4b339795d00a24e8a24ab90c293 Mon Sep 17 00:00:00 2001 From: Benjie Gillam Date: Wed, 22 Aug 2018 13:46:43 +0100 Subject: [PATCH] fix(ignore-extensions): add pg_depend.classid clause to introspection (#285) --- packages/graphile-build-pg/res/introspection-query.sql | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/graphile-build-pg/res/introspection-query.sql b/packages/graphile-build-pg/res/introspection-query.sql index d99902fd93..176c0e579e 100644 --- a/packages/graphile-build-pg/res/introspection-query.sql +++ b/packages/graphile-build-pg/res/introspection-query.sql @@ -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 @@ -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