Remove test on c.relkind from check_constraints view; unnecessary and
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 7 Dec 2003 19:43:13 +0000 (19:43 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 7 Dec 2003 19:43:13 +0000 (19:43 +0000)
prevents view from showing constraints on domains.  This addresses the
other half of Claus Colloseus' bug report.

src/backend/catalog/information_schema.sql

index ae7b89c04b89be285a998984a23e65b52eb54940..aeb4e7101eace732c0249a7c3a045ff5852bffbe 100644 (file)
@@ -112,8 +112,7 @@ CREATE VIEW check_constraints AS
     WHERE rs.oid = con.connamespace
           AND u.usesysid = coalesce(c.relowner, t.typowner)
           AND u.usename = current_user
-          AND con.contype = 'c'
-          AND c.relkind = 'r';
+          AND con.contype = 'c';
 
 GRANT SELECT ON check_constraints TO PUBLIC;