]> begriffs open source - ai-pg/blob - full-docs/txt/infoschema-usage-privileges.txt
Convert HTML docs to more streamlined TXT
[ai-pg] / full-docs / txt / infoschema-usage-privileges.txt
1
2 35.59. usage_privileges #
3
4    The view usage_privileges identifies USAGE privileges granted on
5    various kinds of objects to a currently enabled role or by a currently
6    enabled role. In PostgreSQL, this currently applies to collations,
7    domains, foreign-data wrappers, foreign servers, and sequences. There
8    is one row for each combination of object, grantor, and grantee.
9
10    Since collations do not have real privileges in PostgreSQL, this view
11    shows implicit non-grantable USAGE privileges granted by the owner to
12    PUBLIC for all collations. The other object types, however, show real
13    privileges.
14
15    In PostgreSQL, sequences also support SELECT and UPDATE privileges in
16    addition to the USAGE privilege. These are nonstandard and therefore
17    not visible in the information schema.
18
19    Table 35.57. usage_privileges Columns
20
21    Column Type
22
23    Description
24
25    grantor sql_identifier
26
27    Name of the role that granted the privilege
28
29    grantee sql_identifier
30
31    Name of the role that the privilege was granted to
32
33    object_catalog sql_identifier
34
35    Name of the database containing the object (always the current
36    database)
37
38    object_schema sql_identifier
39
40    Name of the schema containing the object, if applicable, else an empty
41    string
42
43    object_name sql_identifier
44
45    Name of the object
46
47    object_type character_data
48
49    COLLATION or DOMAIN or FOREIGN DATA WRAPPER or FOREIGN SERVER or
50    SEQUENCE
51
52    privilege_type character_data
53
54    Always USAGE
55
56    is_grantable yes_or_no
57
58    YES if the privilege is grantable, NO if not