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

37.20. data_type_privileges #

The view <literal>data_type_privileges</literal> identifies all data type descriptors that the current user has access to, by way of being the owner of the described object or having some privilege for it. A data type descriptor is generated whenever a data type is used in the definition of a table column, a domain, or a function (as parameter or return type) and stores some information about how the data type is used in that instance (for example, the declared maximum length, if applicable). Each data type descriptor is assigned an arbitrary identifier that is unique among the data type descriptor identifiers assigned for one object (table, domain, function). This view is probably not useful for applications, but it is used to define some other views in the information schema. data_type_privilegesビューは、記述子が示すオブジェクトの所有者である、何かしらの権限を持っているといった方法で現在のユーザがアクセスできる全てのデータ型記述子を示します。 あるデータ型がテーブル列やドメイン、関数(パラメータとして、あるいは戻り値として)の定義内で使用されると、そのデータ型記述子は生成され、そして、データ型がそのインスタンスでどのように使用されるか(例えば、もし適切ならば、宣言された最大長)についての情報が格納されます。 各データ型記述子は、1つのオブジェクト(テーブル、ドメイン、関数)に割り当てられたデータ型記述子の中で一意となる任意の識別子が割り振られます。 このビューはおそらくアプリケーションではあまり使用されませんが、情報スキーマ内の他のビューを定義する際に使用されます。

表37.18 data_type_privilegesの列

<title><structname>data_type_privileges</structname> Columns</title>

Column Type 列 型

Description 説明

object_catalog sql_identifier

Name of the database that contains the described object (always the current database) 記述子が示すオブジェクトを持つデータベースの名前です(常に現在のデータベースです)。

object_schema sql_identifier

Name of the schema that contains the described object 記述子が示すオブジェクトを持つスキーマの名前です。

object_name sql_identifier

Name of the described object 記述子が示すオブジェクトの名前です。

object_type character_data

The type of the described object: one of <literal>TABLE</literal> (the data type descriptor pertains to a column of that table), <literal>DOMAIN</literal> (the data type descriptors pertains to that domain), <literal>ROUTINE</literal> (the data type descriptor pertains to a parameter or the return data type of that function). 記述子が示すオブジェクトの種類です。 TABLE(データ型記述子がそのテーブルの列に属します)、DOMAIN(データ型記述子がそのドメインに属します)、ROUTINE(データ型記述子がその関数のパラメータあるいは戻り値データ型に属します)のいずれかです。

dtd_identifier sql_identifier

The identifier of the data type descriptor, which is unique among the data type descriptors for that same object. データ型記述子の識別子です。 これは同一オブジェクトに対するデータ型記述子の中で一意なものです。