1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-26 12:21:12 +03:00

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.
This commit is contained in:
Tom Lane
2003-12-07 19:43:02 +00:00
parent d9d72bcb91
commit 80af69ceaa

View File

@ -4,7 +4,7 @@
* *
* Copyright 2003, PostgreSQL Global Development Group * 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 WHERE rs.oid = con.connamespace
AND u.usesysid = coalesce(c.relowner, t.typowner) AND u.usesysid = coalesce(c.relowner, t.typowner)
AND u.usename = current_user AND u.usename = current_user
AND con.contype = 'c' AND con.contype = 'c';
AND c.relkind = 'r';
GRANT SELECT ON check_constraints TO PUBLIC; GRANT SELECT ON check_constraints TO PUBLIC;