aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2017-08-15 19:27:22 -0400
committerPeter Eisentraut <peter_e@gmx.net>2017-08-15 19:31:06 -0400
commitdce90c7c8c011c2214f53d12b877bf5fcf9ecdd9 (patch)
treeb54c0f605efecae41178b555407eb3154ced7a3e
parent62c9eaf5535df8efb417600add99f6e0d111dac2 (diff)
downloadpostgresql-dce90c7c8c011c2214f53d12b877bf5fcf9ecdd9.tar.gz
postgresql-dce90c7c8c011c2214f53d12b877bf5fcf9ecdd9.zip
Include foreign tables in information_schema.table_privileges
This appears to have been an omission in the original commit 0d692a0dc9f. All related information_schema views already include foreign tables. Reported-by: Nicolas Thauvin <nicolas.thauvin@dalibo.com>
-rw-r--r--src/backend/catalog/information_schema.sql2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/catalog/information_schema.sql b/src/backend/catalog/information_schema.sql
index 18be08fead5..3c46ff1f3fd 100644
--- a/src/backend/catalog/information_schema.sql
+++ b/src/backend/catalog/information_schema.sql
@@ -1853,7 +1853,7 @@ CREATE VIEW table_privileges AS
) AS grantee (oid, rolname)
WHERE c.relnamespace = nc.oid
- AND c.relkind IN ('r', 'v')
+ AND c.relkind IN ('r', 'v', 'f')
AND c.grantee = grantee.oid
AND c.grantor = u_grantor.oid
AND c.prtype IN ('INSERT', 'SELECT', 'UPDATE', 'DELETE', 'TRUNCATE', 'REFERENCES', 'TRIGGER')