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

37.53. table_privileges #

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

表37.51 table_privilegesの列

<title><structname>table_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 (always the current database) テーブルを持つデータベースの名前です(常に現在のデータベースです)。

table_schema sql_identifier

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

table_name sql_identifier

Name of the table テーブルの名前です。

privilege_type character_data

Type of the privilege: <literal>SELECT</literal>, <literal>INSERT</literal>, <literal>UPDATE</literal>, <literal>DELETE</literal>, <literal>TRUNCATE</literal>, <literal>REFERENCES</literal>, or <literal>TRIGGER</literal> 権限の種類は、 SELECTINSERTUPDATEDELETETRUNCATEREFERENCES、またはTRIGGERのいずれかです。

is_grantable yes_or_no

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

with_hierarchy yes_or_no

In the SQL standard, <literal>WITH HIERARCHY OPTION</literal> is a separate (sub-)privilege allowing certain operations on table inheritance hierarchies. In PostgreSQL, this is included in the <literal>SELECT</literal> privilege, so this column shows <literal>YES</literal> if the privilege is <literal>SELECT</literal>, else <literal>NO</literal>. SQL標準では、WITH HIERARCHY OPTIONは、継承テーブル階層に対するある操作を許可する独立した(副次)権限です。 PostgreSQLでは、これはSELECT権限に含まれているため、この列は権限がSELECTの場合はYES、それ以外の場合はNOです。