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

37.59. usage_privileges #

The view <literal>usage_privileges</literal> identifies <literal>USAGE</literal> privileges granted on various kinds of objects to a currently enabled role or by a currently enabled role. In <productname>PostgreSQL</productname>, this currently applies to collations, domains, foreign-data wrappers, foreign servers, and sequences. There is one row for each combination of object, grantor, and grantee. usage_privilegesビューは、現在有効なロールに、もしくは現在有効なロールによって与えられた、各種オブジェクト上のUSAGE権限を示します。 これは今のところ、PostgreSQLでは照合、ドメイン、外部データラッパー、外部サーバ、およびシーケンスに適用します。 オブジェクトと許可を与えた者、許可を受けた者の組み合わせごとに1行があります。

Since collations do not have real privileges in <productname>PostgreSQL</productname>, this view shows implicit non-grantable <literal>USAGE</literal> privileges granted by the owner to <literal>PUBLIC</literal> for all collations. The other object types, however, show real privileges. PostgreSQLでは、照合は実際の権限を所有しませんので、このビューは全ての照合に対して所有者からPUBLICに与えられた暗黙の付与できないUSAGE権限を示します。 しかし、その他のオブジェクトの種類は実際の権限を示します。

In PostgreSQL, sequences also support <literal>SELECT</literal> and <literal>UPDATE</literal> privileges in addition to the <literal>USAGE</literal> privilege. These are nonstandard and therefore not visible in the information schema. PostgreSQLでは、シーケンスはUSAGEに加えてSELECTUPDATE権限もサポートします。これらは非標準であるため、情報スキーマのビューでは参照できません。

表37.57 usage_privilegesの列

<title><structname>usage_privileges</structname> Columns</title>

Column Type 列 型

Description 説明

grantor sql_identifier

Name of the role that granted the privilege 権限を与えたロールの名前です。

grantee sql_identifier

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です。