mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +03:00
Implement the information schema with_hierarchy column
In PostgreSQL, this is included in the SELECT privilege, so show YES or NO depending on whether SELECT is granted.
This commit is contained in:
@ -1785,7 +1785,7 @@ CREATE VIEW table_privileges AS
|
||||
pg_has_role(grantee.oid, c.relowner, 'USAGE')
|
||||
OR c.grantable
|
||||
THEN 'YES' ELSE 'NO' END AS yes_or_no) AS is_grantable,
|
||||
CAST('NO' AS yes_or_no) AS with_hierarchy
|
||||
CAST(CASE WHEN c.prtype = 'SELECT' THEN 'YES' ELSE 'NO' END AS yes_or_no) AS with_hierarchy
|
||||
|
||||
FROM (
|
||||
SELECT oid, relname, relnamespace, relkind, relowner, (aclexplode(relacl)).* FROM pg_class
|
||||
|
Reference in New Issue
Block a user