summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane2003-12-07 19:43:02 +0000
committerTom Lane2003-12-07 19:43:02 +0000
commit80af69ceaaf0b6712251207fea863fbb33fba4c0 (patch)
treeaa8ce56b25bd90a1e0aa567429ad10ca52813880
parentd9d72bcb917e553b43e679e42ebfe55719cbc997 (diff)
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.
-rw-r--r--src/backend/catalog/information_schema.sql5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/backend/catalog/information_schema.sql b/src/backend/catalog/information_schema.sql
index 0c0cc3b95d2..c83565d496b 100644
--- a/src/backend/catalog/information_schema.sql
+++ b/src/backend/catalog/information_schema.sql
@@ -4,7 +4,7 @@
*
* Copyright 2003, PostgreSQL Global Development Group
*
- * $PostgreSQL: pgsql/src/backend/catalog/information_schema.sql,v 1.18 2003/12/07 10:21:58 petere Exp $
+ * $PostgreSQL: pgsql/src/backend/catalog/information_schema.sql,v 1.19 2003/12/07 19:43:02 tgl Exp $
*/
/*
@@ -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;