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

37.15. column_privileges #

The view <literal>column_privileges</literal> identifies all privileges granted on columns to a currently enabled role or by a currently enabled role. There is one row for each combination of column, grantor, and grantee. column_privilegesビューは、現在有効なロールに対し、または現在有効なロールによって、列に与えられた権限を全て示します。 列と許可を与えた者、許可を受けた者の組み合わせごとに1行があります。

If a privilege has been granted on an entire table, it will show up in this view as a grant for each column, but only for the privilege types where column granularity is possible: <literal>SELECT</literal>, <literal>INSERT</literal>, <literal>UPDATE</literal>, <literal>REFERENCES</literal>. 権限がテーブル全体に付与されていた場合、このビューでは各列に権限が付与された場合と同じように表示されます。 しかし、SELECTINSERTUPDATEREFERENCESといった列単位で設定可能な種類の権限のみを対象範囲とします。

表37.13 column_privilegesの列

<title><structname>column_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 権限を与えられたロールの名前です。

table_catalog sql_identifier

Name of the database that contains the table that contains the column (always the current database) その列を含むテーブルを持つデータベースの名前です(常に現在のデータベースです)。

table_schema sql_identifier

Name of the schema that contains the table that contains the column その列を含むテーブルを持つスキーマの名前です。

table_name sql_identifier

Name of the table that contains the column その列を含むテーブルの名前です。

column_name sql_identifier

Name of the column 列の名前です。

privilege_type character_data

Type of the privilege: <literal>SELECT</literal>, <literal>INSERT</literal>, <literal>UPDATE</literal>, or <literal>REFERENCES</literal> 権限の種類です。 SELECTINSERTUPDATE、もしくはREFERENCESです。

is_grantable yes_or_no

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