Add support for domain dependencies/dependents.

This commit is contained in:
Khushboo Vashi 2016-03-18 15:20:41 +00:00 committed by Dave Page
parent 3432481f9a
commit 8a99282e07
2 changed files with 3 additions and 1 deletions

View File

@ -2,7 +2,8 @@
SELECT DISTINCT dep.deptype, dep.refclassid, cl.relkind, ad.adbin, ad.adsrc,
CASE WHEN cl.relkind IS NOT NULL THEN cl.relkind || COALESCE(dep.refobjsubid::text, '')
WHEN tg.oid IS NOT NULL THEN 'T'::text
WHEN ty.oid IS NOT NULL THEN 'y'::text
WHEN ty.oid IS NOT NULL AND ty.typbasetype = 0 THEN 'y'::text
WHEN ty.oid IS NOT NULL AND ty.typbasetype != 0 THEN 'd'::text
WHEN ns.oid IS NOT NULL THEN 'n'::text
WHEN pr.oid IS NOT NULL THEN 'p'::text
WHEN la.oid IS NOT NULL THEN 'l'::text

View File

@ -424,6 +424,7 @@ class PGChildNodeView(NodeView):
'p': 'function',
'n': 'schema',
'y': 'type',
'd': 'domain',
'T': 'trigger',
'l': 'language',
'f': 'foreign_data_wrapper',