↑↓ 选择↵ 打开⌫ 切换范围完整搜索

PG.CENTER 连接 PostgreSQL 文档、百科与生态知识。由 Pigsty 维护。

支持中的版本: 当前版本 (18) / 17 / 16 / 15 / 14
开发中的版本: 19 / 20devel
已结束支持的版本: 13 / 12 / 11 / 10 / 9.6 / 9.5 / 9.4 / 9.3 / 9.2 / 9.1 / 9.0 / 8.4 / 8.3 / 8.2 / 8.1 / 8.0 / 7.4 / 7.3
历史版本。 PostgreSQL 9.1 已结束支持。 2016-10-27. 请参阅 当前版本手册.

45.31. pg_opclass #

目录 pg_opclass 定义索引访问方法操作符类。每个操作符类为一种特定数据类型和一种特定索引访问方法的索引列定义语义。操作符类本质上指定一个特定的操作符族适用于一种特定的可索引列数据类型。该操作符族中实际可用于被索引列的操作符集合,是那些接受该列数据类型作为其左输入的操作符。

操作符类详见第 35.14 节。

表 45.31. pg_opclass 列

NameTypeReferencesDescription
opcmethodoidpg_am.oidIndex access method operator class is for
opcnamename Name of this operator class
opcnamespaceoidpg_namespace.oidNamespace of this operator class
opcowneroidpg_authid.oidOwner of the operator class
opcfamilyoidpg_opfamily.oidOperator family containing the operator class
opcintypeoidpg_type.oidData type that the operator class indexes
opcdefaultbool True if this operator class is the default for opcintype
opckeytypeoidpg_type.oidType of data stored in index, or zero if same as opcintype

一个操作符类的opcmethod必须匹配包含它的操作符族的opfmethod。而且,对于任何给定的opcmethod和opcintype组合,只有不超过一个pg_opclass行的opcdefault值为真。

报告文档问题

阅读 上游文档. 反馈更正前请先核对 当前版本手册.