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

37.25. enabled_roles #

The view <literal>enabled_roles</literal> identifies the currently <quote>enabled roles</quote>. The enabled roles are recursively defined as the current user together with all roles that have been granted to the enabled roles with automatic inheritance. In other words, these are all roles that the current user has direct or indirect, automatically inheriting membership in. <indexterm><primary>enabled role</primary></indexterm> <indexterm><primary>role</primary><secondary>enabled</secondary></indexterm> enabled_rolesビューは、現在有効なロールを示します。 有効なロールは、現在のユーザと自動継承によって有効なロールに付与されたすべてのロールとして再帰的に定義されます。 言い換えると、これは、現在のユーザが直接または間接的に属するメンバ資格の継承により自動的に持つすべてのロールです。

For permission checking, the set of <quote>applicable roles</quote> is applied, which can be broader than the set of enabled roles. So generally, it is better to use the view <literal>applicable_roles</literal> instead of this one; See <xref linkend="infoschema-applicable-roles"/> for details on <literal>applicable_roles</literal> view. 権限検査では、適用可能なロール群が適用されます。 これは、有効なロールよりも広範になる可能性があります。 したがって一般的にはこのビューよりもapplicable_rolesビューを使用する方が良いでしょう。 applicable_rolesビューの詳細については37.5を参照してください。

表37.23 enabled_rolesの列

<title><structname>enabled_roles</structname> Columns</title>

Column Type 列 型

Description 説明

role_name sql_identifier

Name of a role ロール名です。