↑↓ select↵ open⌫ change scopeOpen full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Wiki / System Catalogs

pg_opclass

The catalog pg_opclass 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. Operator classes are described at length in Section 36.16.

English manual coverage begins with PostgreSQL 7.4. Source history and runtime observations have their own recorded version boundaries.

Reading PG 18·Select a recorded version

kind
catalog
lang
en
measured attributes
true
metadata release
18.6
runtime columns
oid, opcmethod, opcname, opcnamespace, opcowner, opcfamily, opcintype, opcdefault, opckeytype
runtime verified
false
source
english-manual

Definition PG 18

The catalog pg_opclass 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. Operator classes are described at length in Section 36.16.

Catalog columns

ColumnTypeNullabilityDescription
oidoidNot nullRow identifier
opcmethodoidNot nullIndex access method operator class is for
opcnamenameNot nullName of this operator class
opcnamespaceoidNot nullNamespace of this operator class
opcowneroidNot nullOwner of the operator class
opcfamilyoidNot nullOperator family containing the operator class
opcintypeoidNot nullData type that the operator class indexes
opcdefaultboolNot nullTrue if this operator class is the default for opcintype
opckeytypeoidNot nullType of data stored in index, or zero if same as opcintype

Compare versions

Source references

Full definition and evidence JSON

Definition sources

center · PostgreSQL 18 · catalog-bilingual-repair:6e732ccf7ba6fa51f53f69d8286d99c15aa96c3055afd6a09455194fc0b66bcd

Text language: en · catalog-bilingual-repair:6e732ccf7ba6fa51f53f69d8286d99c15aa96c3055afd6a09455194fc0b66bcd