|
with_hierarchy
yes_or_no
-
Applies to a feature not available in PostgreSQL>
+
+ In the SQL standard, WITH HIERARCHY OPTION
+ is a separate (sub-)privilege allowing certain operations on
+ table inheritance hierarchies. In PostgreSQL, this is included
+ in the SELECT privilege, so this column
+ shows YES if the privilege
+ is SELECT, else NO.
+
|
with_hierarchy
yes_or_no
-
Applies to a feature not available in PostgreSQL>
+
+ In the SQL standard, WITH HIERARCHY OPTION
+ is a separate (sub-)privilege allowing certain operations on
+ table inheritance hierarchies. In PostgreSQL, this is included
+ in the SELECT privilege, so this column
+ shows YES if the privilege
+ is SELECT, else NO.
+
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