Skip to content

Commit

Permalink
In selecting constraints, exclude those on types installed by extensi…
Browse files Browse the repository at this point in the history
…ons.

  Fixes #152.
  • Loading branch information
jmafc committed Nov 2, 2016
1 parent cf17f65 commit daab83f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyrseas/dbobject/constraint.py
Expand Up @@ -378,6 +378,9 @@ class ConstraintDict(DbObjectDict):
LEFT JOIN pg_tablespace t ON (cl.reltablespace = t.oid)
LEFT JOIN pg_am on (relam = pg_am.oid)
WHERE (nspname != 'pg_catalog' AND nspname != 'information_schema')
AND contypid NOT IN (SELECT objid FROM pg_depend
WHERE deptype = 'e'
AND classid = 'pg_type'::regclass)
ORDER BY schema, 2, name"""
match_types = {'f': 'full', 'p': 'partial', 's': 'simple'}

Expand Down

0 comments on commit daab83f

Please sign in to comment.