38.37. role_udt_grants

Представление role_udt_grants предназначено для отображения прав USAGE, назначенных для пользовательских типов, в которых праводателем или правообладателем является текущая активная роль. Дополнительную информацию можно найти в udt_privileges. Единственное существенное отличие этого представления от udt_privileges состоит в том, что в данном представлении опускаются объекты, которые доступны текущему пользователю косвенно через роль PUBLIC. Так как с типами данных не связываются действующие права в Postgres Pro (только PUBLIC неявно даётся право их использования), это представление пустое.

Таблица 38.35. Столбцы role_udt_grants

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

38.37. role_udt_grants

The view role_udt_grants is intended to identify USAGE privileges granted on user-defined types where the grantor or grantee is a currently enabled role. Further information can be found under udt_privileges. The only effective difference between this view and udt_privileges is that this view omits objects that have been made accessible to the current user by way of a grant to PUBLIC. Since data types do not have real privileges in Postgres Pro, but only an implicit grant to PUBLIC, this view is empty.

Table 38.35. role_udt_grants Columns

NameData TypeDescription
grantorsql_identifierThe name of the role that granted the privilege
granteesql_identifierThe name 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