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

37.39. role_usage_grants #

The view <literal>role_usage_grants</literal> identifies <literal>USAGE</literal> privileges granted on various kinds of objects where the grantor or grantee is a currently enabled role. Further information can be found under <literal>usage_privileges</literal>. The only effective difference between this view and <literal>usage_privileges</literal> is that this view omits objects that have been made accessible to the current user by way of a grant to <literal>PUBLIC</literal>. role_usage_grantsビューは、譲与者または被譲与者が現在有効なロールである多くの種類のオブジェクトに対し、USAGE権限を示します。 詳細な情報はusage_privilegesの中にあります。 このビューとusage_privilegesビューとの間の実質的な違いは、このビューでは現在のユーザがPUBLICに与えられた権限によりアクセスできるようになったオブジェクトを省略していることだけです。

表37.37 role_usage_grantsの列

<title><structname>role_usage_grants</structname> Columns</title>

Column 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 権限が与えられたロールの名前

object_catalog sql_identifier

Name of the database containing the object (always the current database) オブジェクトを持つデータベースの名前(常に現在のデータベースです)。

object_schema sql_identifier

Name of the schema containing the object, if applicable, else an empty string 適用されるオブジェクトを持つスキーマの名前。そうでなければ空文字列

object_name sql_identifier

Name of the object オブジェクトの名前です。

object_type character_data

<literal>COLLATION</literal> or <literal>DOMAIN</literal> or <literal>FOREIGN DATA WRAPPER</literal> or <literal>FOREIGN SERVER</literal> or <literal>SEQUENCE</literal> COLLATIONまたはDOMAINまたはFOREIGN DATA WRAPPERまたはFOREIGN SERVERまたはSEQUENCE

privilege_type character_data

Always <literal>USAGE</literal> 常にUSAGEです。

is_grantable yes_or_no

<literal>YES</literal> if the privilege is grantable, <literal>NO</literal> if not この権限を付与可能な場合はYES、さもなくばNOです。