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

37.23. domains #

The view <literal>domains</literal> contains all <glossterm linkend="glossary-domain">domains</glossterm> defined in the current database. Only those domains are shown that the current user has access to (by way of being the owner or having some privilege). domainsビューには、現在のデータベースで定義された全てのドメインが含まれます。 現在のユーザが(所有者である、権限を持っているなどの方法で)アクセスできるドメインのみが示されます。

表37.21 domainsの列

<title><structname>domains</structname> Columns</title>

Column Type 列 型

Description 説明

domain_catalog sql_identifier

Name of the database that contains the domain (always the current database) ドメインを持つデータベースの名前です(常に現在のデータベースです)。

domain_schema sql_identifier

Name of the schema that contains the domain ドメインを持つスキーマの名前です。

domain_name sql_identifier

Name of the domain ドメインの名前です。

data_type character_data

Data type of the domain, if it is a built-in type, or <literal>ARRAY</literal> if it is some array (in that case, see the view <literal>element_types</literal>), else <literal>USER-DEFINED</literal> (in that case, the type is identified in <literal>udt_name</literal> and associated columns). 組み込み型の場合は、ドメインのデータ型、何らかの配列の場合はARRAYです (後者の場合はelement_typesビューを参照してください)。 さもなくば、USER-DEFINEDです (この場合、その型はudt_nameと関連する列で識別されます)。

character_maximum_length cardinal_number

If the domain has a character or bit string type, the declared maximum length; null for all other data types or if no maximum length was declared. ドメインが、文字もしくはビット文字列型の場合、宣言された最大長です。 他のデータ型、あるいは最大長の宣言がない場合はNULLです。

character_octet_length cardinal_number

If the domain has a character type, the maximum possible length in octets (bytes) of a datum; null for all other data types. The maximum octet length depends on the declared character maximum length (see above) and the server encoding. ドメインが文字型の場合、1つのデータの可能最大長をオクテット(バイト)で示します 他のデータ型の場合はNULLです。 最大オクテット長は宣言された文字最大長(上述)とサーバ符号化方式に依存します。

character_set_catalog sql_identifier

Applies to a feature not available in <productname>PostgreSQL</productname> PostgreSQLでは利用できない機能に適用されるものです。

character_set_schema sql_identifier

Applies to a feature not available in <productname>PostgreSQL</productname> PostgreSQLでは利用できない機能に適用されるものです。

character_set_name sql_identifier

Applies to a feature not available in <productname>PostgreSQL</productname> PostgreSQLでは利用できない機能に適用されるものです。

collation_catalog sql_identifier

Name of the database containing the collation of the domain (always the current database), null if default or the data type of the domain is not collatable ドメインの照合を含むデータベース(常に現在のデータベース)の名前で、デフォルトであるかドメインのデータ型が照合可能でない場合はNULLです。

collation_schema sql_identifier

Name of the schema containing the collation of the domain, null if default or the data type of the domain is not collatable ドメインの照合を含むスキーマの名前で、デフォルトであるかドメインのデータ型が照合可能でない場合はNULLです。

collation_name sql_identifier

Name of the collation of the domain, null if default or the data type of the domain is not collatable ドメインの照合の名前で、デフォルトであるかドメインのデータ型が照合可能でない場合はNULLです。

numeric_precision cardinal_number

If the domain has a numeric type, this column contains the (declared or implicit) precision of the type for this domain. The precision indicates the number of significant digits. It can be expressed in decimal (base 10) or binary (base 2) terms, as specified in the column <literal>numeric_precision_radix</literal>. For all other data types, this column is null. ドメインが数値型の場合、この列は、そのドメインの型の(宣言された、もしくは暗黙的な)精度を持ちます。 この精度は有効桁数を示すものです。 numeric_precision_radix 列が示す通り、10進数(10を底)でも2進数(2を底)でも表現できます。 他の全ての型の場合では、この列はNULLです。

numeric_precision_radix cardinal_number

If the domain has a numeric type, this column indicates in which base the values in the columns <literal>numeric_precision</literal> and <literal>numeric_scale</literal> are expressed. The value is either 2 or 10. For all other data types, this column is null. ドメインが数値型の場合、この列は、numeric_precisionnumeric_scaleで表現されるその列の値の底数がどちらかを示します。 2もしくは10の値となります。 他の全ての型の場合では、この列はNULLです。

numeric_scale cardinal_number

If the domain has an exact numeric type, this column contains the (declared or implicit) scale of the type for this domain. The scale indicates the number of significant digits to the right of the decimal point. It can be expressed in decimal (base 10) or binary (base 2) terms, as specified in the column <literal>numeric_precision_radix</literal>. For all other data types, this column is null. ドメインが高精度数値型の場合、この列は、そのドメインの型の(宣言された、もしくは暗黙的な)位取りを持ちます。 位取りは、小数点より右側の有効桁数を示すものです。 numeric_precision_radix列の指定に従い、10進数(10を底)、もしくは2進数(2を底)で表現されます。 他の全ての型の場合では、この列はNULLです。

datetime_precision cardinal_number

If <literal>data_type</literal> identifies a date, time, timestamp, or interval type, this column contains the (declared or implicit) fractional seconds precision of the type for this domain, that is, the number of decimal digits maintained following the decimal point in the seconds value. For all other data types, this column is null. data_typeが日付、時刻、タイムスタンプ、間隔型と識別される場合、この列はこのドメインの型で(宣言された、または暗黙的な)秒の端数の精度、つまり、秒値の小数点以下で保持される10進の桁数です。 他の全ての型の場合では、この列はNULLです。

interval_type character_data

If <literal>data_type</literal> identifies an interval type, this column contains the specification which fields the intervals include for this domain, e.g., <literal>YEAR TO MONTH</literal>, <literal>DAY TO SECOND</literal>, etc. If no field restrictions were specified (that is, the interval accepts all fields), and for all other data types, this field is null. data_typeが時間間隔型と識別される場合、この列はこのドメインの時間間隔値がどのフィールドを含むかの仕様を含みます。例えば、YEAR TO MONTHDAY TO SECONDなどです。 もしフィールド制約が指定されていない(時間間隔が全てのフィールドを受け付ける)場合や、他の全てのデータ型の場合はこのフィールドはNULLです。

interval_precision cardinal_number

Applies to a feature not available in <productname>PostgreSQL</productname> (see <literal>datetime_precision</literal> for the fractional seconds precision of interval type domains) PostgreSQLで利用できない機能に適用されるものです。(時間間隔型のドメインの秒未満の精度についてはdatetime_precisionを参照してください)

domain_default character_data

Default expression of the domain ドメインのデフォルト式です。

udt_catalog sql_identifier

Name of the database that the domain data type is defined in (always the current database) ドメインデータ型を定義したデータベースの名前です(常に現在のデータベースです)。

udt_schema sql_identifier

Name of the schema that the domain data type is defined in ドメインデータ型を定義したスキーマの名前です。

udt_name sql_identifier

Name of the domain data type ドメインデータ型の名前です。

scope_catalog sql_identifier

Applies to a feature not available in <productname>PostgreSQL</productname> PostgreSQLでは利用できない機能に適用されるものです。

scope_schema sql_identifier

Applies to a feature not available in <productname>PostgreSQL</productname> PostgreSQLでは利用できない機能に適用されるものです。

scope_name sql_identifier

Applies to a feature not available in <productname>PostgreSQL</productname> PostgreSQLでは利用できない機能に適用されるものです。

maximum_cardinality cardinal_number

Always null, because arrays always have unlimited maximum cardinality in <productname>PostgreSQL</productname> 常にNULLです。PostgreSQLでは配列の次数は無制限だからです。

dtd_identifier sql_identifier

An identifier of the data type descriptor of the domain, unique among the data type descriptors pertaining to the domain (which is trivial, because a domain only contains one data type descriptor). This is mainly useful for joining with other instances of such identifiers. (The specific format of the identifier is not defined and not guaranteed to remain the same in future versions.) そのドメインに属するデータ型記述子間で一意な、データ型記述子の識別子です (ドメインには1つのデータ型記述子しかありませんのでこれは些細なものです)。 これは主に、こうした識別子の他のインスタンスを結合する時に有用です (識別子の書式の仕様は定義されておらず、将来のバージョンでそのまま維持されるかどうかも保証されません)。