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:41 +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 a036c62a3350a490eec5462da30e8fe840087775..92b1e59468d27013fcc7596366d2b039308e9aed 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')