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

37.38. role_udt_grants #

The view <literal>role_udt_grants</literal> is intended to identify <literal>USAGE</literal> privileges granted on user-defined types where the grantor or grantee is a currently enabled role. Further information can be found under <literal>udt_privileges</literal>. The only effective difference between this view and <literal>udt_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>. Since data types do not have real privileges in PostgreSQL, but only an implicit grant to <literal>PUBLIC</literal>, this view is empty. role_udt_grantsビューは、現在有効なロールが付与者また被付与者である、ユーザ定義型に付与されたUSAGE権限を識別することを意図したものです。それ以上の情報はudt_privilegesで見つかります。 このビューとudt_privilegesビューとの間の実質的な違いは、このビューでは現在のユーザがPUBLICに与えられた権限によりアクセスできるようになったオブジェクトを省略していることだけです。 PostgreSQLではデータ型は実際の権限を持たず、PUBLICに対する暗黙の権限付与しか持たないため、このビューは空です。

表37.36 role_udt_grantsの列

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

udt_catalog sql_identifier

Name of the database containing the type (always the current database) 型を持つデータベースの名前(常に現在のデータベースです)。

udt_schema sql_identifier

Name of the schema containing the type 型を持つスキーマの名前

udt_name sql_identifier

Name of the type 型の名前

privilege_type character_data

Always <literal>TYPE USAGE</literal> 常にTYPE USAGE

is_grantable yes_or_no

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