4 The catalog pg_opclass defines index access method operator classes.
5 Each operator class defines semantics for index columns of a particular
6 data type and a particular index access method. An operator class
7 essentially specifies that a particular operator family is applicable
8 to a particular indexable column data type. The set of operators from
9 the family that are actually usable with the indexed column are
10 whichever ones accept the column's data type as their left-hand input.
12 Operator classes are described at length in Section 36.16.
14 Table 52.33. pg_opclass Columns
24 opcmethod oid (references pg_am.oid)
26 Index access method operator class is for
30 Name of this operator class
32 opcnamespace oid (references pg_namespace.oid)
34 Namespace of this operator class
36 opcowner oid (references pg_authid.oid)
38 Owner of the operator class
40 opcfamily oid (references pg_opfamily.oid)
42 Operator family containing the operator class
44 opcintype oid (references pg_type.oid)
46 Data type that the operator class indexes
50 True if this operator class is the default for opcintype
52 opckeytype oid (references pg_type.oid)
54 Type of data stored in index, or zero if same as opcintype
56 An operator class's opcmethod must match the opfmethod of its
57 containing operator family. Also, there must be no more than one
58 pg_opclass row having opcdefault true for any given combination of
59 opcmethod and opcintype.