Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Include foreign tables in information_schema.table_privileges
authorPeter Eisentraut <peter_e@gmx.net>
Tue, 15 Aug 2017 23:27:22 +0000 (19:27 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Tue, 15 Aug 2017 23:32:00 +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 <nicolas.thauvin@dalibo.com>
src/backend/catalog/information_schema.sql

index 6e1b241956a5fa2575a2af6e5794f1aff158dfa5..088178de64ab1f2f24a99c708c9492bcea55ad5f 100644 (file)
@@ -1845,7 +1845,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')