Skip to content

Commit 98e6784

Browse files
committed
Include foreign tables in information_schema.table_privileges
This appears to have been an omission in the original commit 0d692a0. All related information_schema views already include foreign tables. Reported-by: Nicolas Thauvin <nicolas.thauvin@dalibo.com>
1 parent 8ae41ce commit 98e6784

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/catalog/information_schema.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1808,7 +1808,7 @@ CREATE VIEW table_privileges AS
18081808
) AS grantee (oid, rolname)
18091809

18101810
WHERE c.relnamespace = nc.oid
1811-
AND c.relkind IN ('r', 'v')
1811+
AND c.relkind IN ('r', 'v', 'f')
18121812
AND c.grantee = grantee.oid
18131813
AND c.grantor = u_grantor.oid
18141814
AND c.prtype IN ('INSERT', 'SELECT', 'UPDATE', 'DELETE', 'TRUNCATE', 'REFERENCES', 'TRIGGER')

0 commit comments

Comments
 (0)