Postgresql 中文操作指南
37.58. udt_privileges #
视图 _udt_privileges_标识了当前启用的角色或当前启用的角色授予给用户定义类型的 _USAGE_权限。对于类型、授权人和被授权人的每个组合,都有一个行。此视图仅显示复合类型(有关原因,请参阅 Section 37.60);有关域权限,请参阅 Section 37.59。
The view udt_privileges identifies USAGE privileges granted on user-defined types to a currently enabled role or by a currently enabled role. There is one row for each combination of type, grantor, and grantee. This view shows only composite types (see under Section 37.60 for why); see Section 37.59 for domain privileges.
Table 37.56. udt_privileges Columns
Table 37.56. udt_privileges Columns
Column Type Description |
grantor sql_identifier Name of the role that granted the privilege |
grantee sql_identifier Name of the role that the privilege was granted to |
udt_catalog sql_identifier Name of the database containing the type (always the current database) |
udt_schema sql_identifier Name of the schema containing the type |
udt_name sql_identifier Name of the type |
privilege_type character_data Always TYPE USAGE |
is_grantable yes_or_no YES if the privilege is grantable, NO if not |