| Документация по PostgreSQL 9.4.1 | |||
|---|---|---|---|
| Пред. | Уровень выше | Глава 34. Информационная схема | След. |
34.37. role_udt_grants
Представление role_udt_grants предназначено для отображения прав USAGE, назначенных для пользовательских типов, в которых праводателем или правообладателем является текущая активная роль. Дополнительную информацию можно найти в udt_privileges. Единственное существенное отличие этого представления от udt_privileges состоит в том, что в данном представлении опускаются объекты, которые доступны текущему пользователю косвенно через роль PUBLIC. Так как с типами данных не связываются действующие права в PostgreSQL (только PUBLIC неявно даётся право их использования), это представление пустое.
Таблица 34-35. Колонки role_udt_grants
| Имя | Тип данных | Описание |
|---|---|---|
| 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 в противном случае |
| Пред. | Начало | След. |
| role_table_grants | Уровень выше | role_usage_grants |
| PostgreSQL 9.4.1 Documentation | |||
|---|---|---|---|
| Prev | Up | Chapter 34. The Information Schema | Next |
34.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 PostgreSQL, but only an implicit grant to PUBLIC, this view is empty.
Table 34-35. role_udt_grants Columns
| Name | Data Type | Description |
|---|---|---|
| grantor | sql_identifier | The name of the role that granted the privilege |
| grantee | sql_identifier | The 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 |