37.56. udt_privileges

Представление udt_privileges описывает права USAGE, назначенные текущей активной роли или текущей активной ролью для пользовательских типов. Оно содержит отдельную строку для каждой комбинации типа, праводателя и правообладателя. Это представление показывает только составные типы (почему, говорится в Разделе 37.58); права, затрагивающие домены, описаны в Разделе 37.57.

Таблица 37.54. Столбцы udt_privileges

ИмяТип данныхОписание
grantorsql_identifierИмя роли, давшей право (праводатель)
granteesql_identifierИмя роли, которой было дано право (правообладатель)
udt_catalogsql_identifierИмя базы данных, содержащей тип (всегда текущая база)
udt_schemasql_identifierИмя схемы, содержащей тип
udt_namesql_identifierИмя типа
privilege_typecharacter_dataВсегда TYPE USAGE
is_grantableyes_or_noYES, если право может передаваться, или NO в противном случае

37.56. udt_privileges

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.58 for why); see Section 37.57 for domain privileges.

Table 37.54. udt_privileges Columns

NameData TypeDescription
grantorsql_identifierName of the role that granted the privilege
granteesql_identifierName of the role that the privilege was granted to
udt_catalogsql_identifierName of the database containing the type (always the current database)
udt_schemasql_identifierName of the schema containing the type
udt_namesql_identifierName of the type
privilege_typecharacter_dataAlways TYPE USAGE
is_grantableyes_or_noYES if the privilege is grantable, NO if not

FAQ