历史版本。 PostgreSQL 9.2 已结束支持。 2017-11-09. 请参阅 当前版本手册.
45.31. pg_opclass #
目录 pg_opclass 定义索引访问方法操作符类。每个操作符类为一种特定数据类型和一种特定索引访问方法的索引列定义语义。操作符类本质上指定一个特定的操作符族适用于一种特定的可索引列数据类型。该操作符族中实际可用于被索引列的操作符集合,是那些接受该列数据类型作为其左输入的操作符。
操作符类详见第 35.14 节。
表 45.31. pg_opclass 列
| Name | Type | References | Description |
|---|---|---|---|
opcmethod | oid | | Index access method operator class is for |
opcname | name | Name of this operator class | |
opcnamespace | oid | | Namespace of this operator class |
opcowner | oid | | Owner of the operator class |
opcfamily | oid | | Operator family containing the operator class |
opcintype | oid | | Data type that the operator class indexes |
opcdefault | bool | True if this operator class is the default for opcintype | |
opckeytype | oid | | Type of data stored in index, or zero if same as opcintype |
一个操作符类的opcmethod必须匹配包含它的操作符族的opfmethod。而且,对于任何给定的opcmethod和opcintype组合,只有不超过一个pg_opclass行的opcdefault值为真。