36.37. role_udt_grants

视图role_udt_grants旨在标识在授予者或被授予者是当前启用的角色的用户定义类型上授予的USAGE特权。更多信息可以在udt_privileges下找到。此视图与udt_privileges之间的唯一有效区别是,该视图省略了通过授予PUBLIC使其对当前用户可访问的对象。由于数据类型在 PostgreSQL 中没有 true 的特权,而仅对PUBLIC隐式授予,因此该视图为空。

表 36.35. role_udt_grants

NameData TypeDescription
grantorsql_identifier授予特权的角色的名称
granteesql_identifier授予特权的角色名称
udt_catalogsql_identifier包含类型的数据库名称(总是当前数据库)
udt_schemasql_identifier包含类型的模式名称
udt_namesql_identifier类型名称
privilege_typecharacter_data一律TYPE USAGE
is_grantableyes_or_noYES(如果可以授予该特权),NO(如果不是)