On this page
37.37. role_udt_grants
视图role_udt_grants
旨在标识在授予者或被授予者是当前启用的角色的用户定义类型上授予的USAGE
特权。更多信息可以在udt_privileges
下找到。此视图与udt_privileges
之间的唯一有效区别是,该视图省略了通过授予PUBLIC
使其对当前用户可访问的对象。由于数据类型在 PostgreSQL 中没有 true 的特权,而仅对PUBLIC
隐式授予,因此该视图为空。
表 37.35. role_udt_grants
列
Name | Data Type | Description |
---|---|---|
grantor |
sql_identifier |
授予特权的角色的名称 |
grantee |
sql_identifier |
授予特权的角色名称 |
udt_catalog |
sql_identifier |
包含类型的数据库名称(总是当前数据库) |
udt_schema |
sql_identifier |
包含类型的模式名称 |
udt_name |
sql_identifier |
类型名称 |
privilege_type |
character_data |
一律TYPE USAGE |
is_grantable |
yes_or_no |
YES (如果可以授予该特权),NO (如果不是) |