Skip to content

Commit 80af69c

Browse files
committed
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.
1 parent d9d72bc commit 80af69c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/backend/catalog/information_schema.sql

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* Copyright 2003, PostgreSQL Global Development Group
66
*
7-
* $PostgreSQL: pgsql/src/backend/catalog/information_schema.sql,v 1.18 2003/12/07 10:21:58 petere Exp $
7+
* $PostgreSQL: pgsql/src/backend/catalog/information_schema.sql,v 1.19 2003/12/07 19:43:02 tgl Exp $
88
*/
99

1010
/*
@@ -112,8 +112,7 @@ CREATE VIEW check_constraints AS
112112
WHERE rs.oid = con.connamespace
113113
AND u.usesysid = coalesce(c.relowner, t.typowner)
114114
AND u.usename = current_user
115-
AND con.contype = 'c'
116-
AND c.relkind = 'r';
115+
AND con.contype = 'c';
117116

118117
GRANT SELECT ON check_constraints TO PUBLIC;
119118

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy