mirror of
https://github.com/postgres/postgres.git
synced 2025-06-05 23:56:58 +03:00
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>
This commit is contained in:
parent
51684bad9f
commit
dbeefe64f3
@ -1845,7 +1845,7 @@ CREATE VIEW table_privileges AS
|
|||||||
) AS grantee (oid, rolname)
|
) AS grantee (oid, rolname)
|
||||||
|
|
||||||
WHERE c.relnamespace = nc.oid
|
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.grantee = grantee.oid
|
||||||
AND c.grantor = u_grantor.oid
|
AND c.grantor = u_grantor.oid
|
||||||
AND c.prtype IN ('INSERT', 'SELECT', 'UPDATE', 'DELETE', 'TRUNCATE', 'REFERENCES', 'TRIGGER')
|
AND c.prtype IN ('INSERT', 'SELECT', 'UPDATE', 'DELETE', 'TRUNCATE', 'REFERENCES', 'TRIGGER')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user