projects
/
users
/
bernd
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2b9351
)
Remove test on c.relkind from check_constraints view; unnecessary and
author
Tom Lane
<tgl@sss.pgh.pa.us>
Sun, 7 Dec 2003 19:43:13 +0000
(19:43 +0000)
committer
Tom 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
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/catalog/information_schema.sql
b/src/backend/catalog/information_schema.sql
index ae7b89c04b89be285a998984a23e65b52eb54940..aeb4e7101eace732c0249a7c3a045ff5852bffbe 100644
(file)
--- 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;