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

53.33. pg_opclass #

The catalog <structname>pg_opclass</structname> defines index access method operator classes. Each operator class defines semantics for index columns of a particular data type and a particular index access method. An operator class essentially specifies that a particular operator family is applicable to a particular indexable column data type. The set of operators from the family that are actually usable with the indexed column are whichever ones accept the column's data type as their left-hand input. pg_opclassカタログはインデックスアクセスメソッド演算子クラスを定義します。 それぞれの演算子クラスは特定のデータ型のインデックス列のセマンティクスと特定のインデックスアクセスメソッドを定義します。 演算子クラスは、ある特定の演算子族は特定のインデックス可能な列データの型に対して適用できる、ということを本質的に特定します。 インデックス付けされた列を実際に使用可能な演算子族の演算子群は、その列のデータ型を左辺の入力として受け付けます。

Operator classes are described at length in <xref linkend="xindex"/>. 演算子クラスについては38.16に詳細に説明されています。

表53.33 pg_opclassの列

<title><structname>pg_opclass</structname> Columns</title>

Column Type 列 型

Description 説明

oid oid

Row identifier 行識別子

opcmethod oid (references <link linkend="catalog-pg-am"><structname>pg_am</structname></link>.<structfield>oid</structfield>) (参照先 pg_am.oid

Index access method operator class is for 対象のインデックスアクセスメソッド演算子クラス

opcname name

Name of this operator class この演算子クラスの名前

opcnamespace oid (references <link linkend="catalog-pg-namespace"><structname>pg_namespace</structname></link>.<structfield>oid</structfield>) (参照先 pg_namespace.oid

Namespace of this operator class この演算子クラスの名前空間

opcowner oid (references <link linkend="catalog-pg-authid"><structname>pg_authid</structname></link>.<structfield>oid</structfield>) (参照先 pg_authid.oid

Owner of the operator class 演算子クラスの所有者

opcfamily oid (references <link linkend="catalog-pg-opfamily"><structname>pg_opfamily</structname></link>.<structfield>oid</structfield>) (参照先 pg_opfamily.oid

Operator family containing the operator class 演算子クラスを含んでいる演算子族

opcintype oid (references <link linkend="catalog-pg-type"><structname>pg_type</structname></link>.<structfield>oid</structfield>) (参照先 pg_type.oid

Data type that the operator class indexes 演算子クラスがインデックスを作成するデータ型

opcdefault bool

True if this operator class is the default for <structfield>opcintype</structfield> 演算子クラスがopcintypeのデフォルトである場合はtrue

opckeytype oid (references <link linkend="catalog-pg-type"><structname>pg_type</structname></link>.<structfield>oid</structfield>) (参照先 pg_type.oid

Type of data stored in index, or zero if same as <structfield>opcintype</structfield> インデックス内に格納されているデータ型。opcintypeと同じ場合はゼロ


An operator class's <structfield>opcmethod</structfield> must match the <structfield>opfmethod</structfield> of its containing operator family. Also, there must be no more than one <structname>pg_opclass</structname> row having <structfield>opcdefault</structfield> true for any given combination of <structfield>opcmethod</structfield> and <structfield>opcintype</structfield>. 演算子クラスのopcmethodは、演算子クラスが含んでいる演算子族のopfmethodに一致しなければいけません。 また、任意のopcmethodopcintypeの組み合わせに対してopcdefaultがtrueとなるようなpg_opclass行が複数存在してはいけません。