| Документация по PostgreSQL 9.4.1 | |||
|---|---|---|---|
| Пред. | Уровень выше | Глава 34. Информационная схема | След. |
34.5. applicable_roles
Представление applicable_roles описывает все роли, права которых может использовать текущий пользователь. Это означает, что существует некоторая цепочка ролей от текущего пользователя к целевой роли. Роль самого пользователя также считается применимой. Набор применимых ролей обычно используется для проверки разрешений.
Таблица 34-3. Колонки applicable_roles
| Имя | Тип данных | Описание |
|---|---|---|
| grantee | sql_identifier | Имя роли, которой было разрешено участие в целевой роли (может быть текущий пользователь, либо другая роль, в случае вложенного членства) |
| role_name | sql_identifier | Имя целевой роли |
| is_grantable | yes_or_no | YES, если субъект является администратором для этой роли, или NO в противном случае |
| Пред. | Начало | След. |
| administrable_role_authorizations | Уровень выше | attributes |
| PostgreSQL 9.4.1 Documentation | |||
|---|---|---|---|
| Prev | Up | Chapter 34. The Information Schema | Next |
34.5. applicable_roles
The view applicable_roles identifies all roles whose privileges the current user can use. This means there is some chain of role grants from the current user to the role in question. The current user itself is also an applicable role. The set of applicable roles is generally used for permission checking.
Table 34-3. applicable_roles Columns
| Name | Data Type | Description |
|---|---|---|
| grantee | sql_identifier | Name of the role to which this role membership was granted (can be the current user, or a different role in case of nested role memberships) |
| role_name | sql_identifier | Name of a role |
| is_grantable | yes_or_no | YES if the grantee has the admin option on the role, NO if not |