バージョンごとのドキュメント一覧

37.5. applicable_roles #

The view <literal>applicable_roles</literal> 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. <indexterm><primary>applicable role</primary></indexterm> <indexterm><primary>role</primary><secondary>applicable</secondary></indexterm> applicable_rolesビューは、その権限を現在のユーザが使用することができるすべてのロールを示します。 これは、現在のユーザから問題のロールに付与されたロールの連鎖が存在することを意味します。 現在のユーザ自身もまた適用可能なロールです。 適用可能なロール群は通常権限の検査に使用されます。

表37.3 applicable_rolesの列

<title><structname>applicable_roles</structname> Columns</title>

Column 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

<literal>YES</literal> if the grantee has the admin option on the role, <literal>NO</literal> if not 付与者がこのロールにアドミンオプションを持つ場合YES、さもなくばNOです。