]> begriffs open source - ai-pg/blob - full-docs/txt/catalog-pg-opclass.txt
Convert HTML docs to more streamlined TXT
[ai-pg] / full-docs / txt / catalog-pg-opclass.txt
1
2 52.33. pg_opclass #
3
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.
11
12    Operator classes are described at length in Section 36.16.
13
14    Table 52.33. pg_opclass Columns
15
16    Column Type
17
18    Description
19
20    oid oid
21
22    Row identifier
23
24    opcmethod oid (references pg_am.oid)
25
26    Index access method operator class is for
27
28    opcname name
29
30    Name of this operator class
31
32    opcnamespace oid (references pg_namespace.oid)
33
34    Namespace of this operator class
35
36    opcowner oid (references pg_authid.oid)
37
38    Owner of the operator class
39
40    opcfamily oid (references pg_opfamily.oid)
41
42    Operator family containing the operator class
43
44    opcintype oid (references pg_type.oid)
45
46    Data type that the operator class indexes
47
48    opcdefault bool
49
50    True if this operator class is the default for opcintype
51
52    opckeytype oid (references pg_type.oid)
53
54    Type of data stored in index, or zero if same as opcintype
55
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.