2 35.37. role_table_grants #
4 The view role_table_grants identifies all privileges granted on tables
5 or views where the grantor or grantee is a currently enabled role.
6 Further information can be found under table_privileges. The only
7 effective difference between this view and table_privileges is that
8 this view omits tables that have been made accessible to the current
9 user by way of a grant to PUBLIC.
11 Table 35.35. role_table_grants Columns
17 grantor sql_identifier
19 Name of the role that granted the privilege
21 grantee sql_identifier
23 Name of the role that the privilege was granted to
25 table_catalog sql_identifier
27 Name of the database that contains the table (always the current
30 table_schema sql_identifier
32 Name of the schema that contains the table
34 table_name sql_identifier
38 privilege_type character_data
40 Type of the privilege: SELECT, INSERT, UPDATE, DELETE, TRUNCATE,
41 REFERENCES, or TRIGGER
43 is_grantable yes_or_no
45 YES if the privilege is grantable, NO if not
47 with_hierarchy yes_or_no
49 In the SQL standard, WITH HIERARCHY OPTION is a separate
50 (sub-)privilege allowing certain operations on table inheritance
51 hierarchies. In PostgreSQL, this is included in the SELECT privilege,
52 so this column shows YES if the privilege is SELECT, else NO.