| Документация по PostgreSQL 9.4.1 | |||
|---|---|---|---|
| Пред. | Уровень выше | Глава 34. Информационная схема | След. |
34.55. udt_privileges
Представление udt_privileges описывает права USAGE, назначенные текущей активной роли или текущей активной ролью для пользовательских типов. Оно содержит отдельную строку для каждой комбинации типа, праводателя и правообладателя. Это представление показывает только составные типы (почему, говорится в Разделе 34.57); права, затрагивающие домены, описаны в Разделе 34.56.
Таблица 34-53. Колонки udt_privileges
| Имя | Тип данных | Описание |
|---|---|---|
| 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 в противном случае |
| Пред. | Начало | След. |
| triggers | Уровень выше | usage_privileges |
| PostgreSQL 9.4.1 Documentation | |||
|---|---|---|---|
| Prev | Up | Chapter 34. The Information Schema | Next |
34.55. 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 column, grantor, and grantee. This view shows only composite types (see under Section 34.57 for why); see Section 34.56 for domain privileges.
Table 34-53. udt_privileges Columns
| Name | Data 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 |