projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd18427
)
Include foreign tables in information_schema.table_privileges
author
Peter Eisentraut
Tue, 15 Aug 2017 23:27:22 +0000
(19:27 -0400)
committer
Peter Eisentraut
Tue, 15 Aug 2017 23:32:52 +0000
(19:32 -0400)
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
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 e1f8e7f4b1c92f1e387e13b792ee6f57126ebec8..94915c87b386a75769ed2f11cce9a898487fa9fc 100644
(file)
--- a/
src/backend/catalog/information_schema.sql
+++ b/
src/backend/catalog/information_schema.sql
@@
-1838,7
+1838,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')