2 35.59. usage_privileges #
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.
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
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.
19 Table 35.57. usage_privileges Columns
25 grantor sql_identifier
27 Name of the role that granted the privilege
29 grantee sql_identifier
31 Name of the role that the privilege was granted to
33 object_catalog sql_identifier
35 Name of the database containing the object (always the current
38 object_schema sql_identifier
40 Name of the schema containing the object, if applicable, else an empty
43 object_name sql_identifier
47 object_type character_data
49 COLLATION or DOMAIN or FOREIGN DATA WRAPPER or FOREIGN SERVER or
52 privilege_type character_data
56 is_grantable yes_or_no
58 YES if the privilege is grantable, NO if not