]> begriffs open source - ai-pg/blob - full-docs/txt/infoschema-role-table-grants.txt
Convert HTML docs to more streamlined TXT
[ai-pg] / full-docs / txt / infoschema-role-table-grants.txt
1
2 35.37. role_table_grants #
3
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.
10
11    Table 35.35. role_table_grants Columns
12
13    Column Type
14
15    Description
16
17    grantor sql_identifier
18
19    Name of the role that granted the privilege
20
21    grantee sql_identifier
22
23    Name of the role that the privilege was granted to
24
25    table_catalog sql_identifier
26
27    Name of the database that contains the table (always the current
28    database)
29
30    table_schema sql_identifier
31
32    Name of the schema that contains the table
33
34    table_name sql_identifier
35
36    Name of the table
37
38    privilege_type character_data
39
40    Type of the privilege: SELECT, INSERT, UPDATE, DELETE, TRUNCATE,
41    REFERENCES, or TRIGGER
42
43    is_grantable yes_or_no
44
45    YES if the privilege is grantable, NO if not
46
47    with_hierarchy yes_or_no
48
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.