Skip to content

Commit

Permalink
the CheckConstraint query returned constraints owned by extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
allierowan committed Jul 10, 2024
1 parent ec68251 commit 0f79bff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyrseas/dbobject/constraint.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ def query(dbversion=None):
AND contype = 'c'
AND contypid NOT IN (SELECT objid FROM pg_depend
WHERE deptype = 'e' AND classid = 'pg_type'::regclass)
AND conrelid NOT IN (SELECT objid FROM pg_depend
WHERE deptype = 'e' AND classid = 'pg_class'::regclass)
ORDER BY schema, "table", name"""

@staticmethod
Expand Down

0 comments on commit 0f79bff

Please sign in to comment.