From: Tom Lane Date: Sun, 7 Dec 2003 19:43:13 +0000 (+0000) Subject: Remove test on c.relkind from check_constraints view; unnecessary and X-Git-Url: http://waps.l3s.uni-hannover.de/gitweb/?a=commitdiff_plain;h=20c106b9cc8a79eaee7d4c050df789bcfab550a0;p=users%2Fbernd%2Fpostgres.git Remove test on c.relkind from check_constraints view; unnecessary and prevents view from showing constraints on domains. This addresses the other half of Claus Colloseus' bug report. --- diff --git a/src/backend/catalog/information_schema.sql b/src/backend/catalog/information_schema.sql index ae7b89c04b..aeb4e7101e 100644 --- a/src/backend/catalog/information_schema.sql +++ b/src/backend/catalog/information_schema.sql @@ -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;