1/*-------------------------------------------------------------------------
4 * definition of the "operator class" system catalog (pg_opclass)
6 * The primary key for this table is <opcmethod, opcname, opcnamespace> ---
7 * that is, there is a row for each valid combination of opclass name and
8 * index access method type. This row specifies the expected input data type
9 * for the opclass (the type of the heap column, or the expression output type
10 * in the case of an index expression). Note that types binary-coercible to
11 * the specified type will be accepted too.
13 * For a given <opcmethod, opcintype> pair, there can be at most one row that
14 * has opcdefault = true; this row is the default opclass for such data in
15 * such an index. (This is not currently enforced by an index, because we
16 * don't support partial indexes on system catalogs.)
18 * Normally opckeytype = InvalidOid (zero), indicating that the data stored
19 * in the index is the same as the data in the indexed column. If opckeytype
20 * is nonzero then it indicates that a conversion step is needed to produce
21 * the stored index data, which will be of type opckeytype (which might be
22 * the same or different from the input datatype). Performing such a
23 * conversion is the responsibility of the index access method --- not all
27 * Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
28 * Portions Copyright (c) 1994, Regents of the University of California
30 * src/include/catalog/pg_opclass.h
33 * The Catalog.pm module reads this file and derives schema
36 *-------------------------------------------------------------------------
42#include "catalog/pg_opclass_d.h" /* IWYU pragma: export */
45 * pg_opclass definition. cpp turns this into
46 * typedef struct FormData_pg_opclass
49 CATALOG(pg_opclass,2616,OperatorClassRelationId)
53 /* index access method opclass is for */
56 /* name of this opclass */
59 /* namespace of this opclass */
65 /* containing operator family */
68 /* type of data indexed by opclass */
71 /* T if opclass is default for opcintype */
74 /* type of data in index, or InvalidOid if same as input column type */
79 * Form_pg_opclass corresponds to a pointer to a tuple with
80 * the format of pg_opclass relation.
85 DECLARE_UNIQUE_INDEX(pg_opclass_am_name_nsp_index, 2686, OpclassAmNameNspIndexId, pg_opclass, btree(opcmethod oid_ops, opcname name_ops, opcnamespace oid_ops));
91#endif /* PG_OPCLASS_H */
#define BKI_LOOKUP(catalog)
#define BKI_DEFAULT(value)
#define BKI_LOOKUP_OPT(catalog)
MAKE_SYSCACHE(CLAAMNAMENSP, pg_opclass_am_name_nsp_index, 8)
DECLARE_UNIQUE_INDEX_PKEY(pg_opclass_oid_index, 2687, OpclassOidIndexId, pg_opclass, btree(oid oid_ops))
CATALOG(pg_opclass, 2616, OperatorClassRelationId)
FormData_pg_opclass * Form_pg_opclass
DECLARE_UNIQUE_INDEX(pg_opclass_am_name_nsp_index, 2686, OpclassAmNameNspIndexId, pg_opclass, btree(opcmethod oid_ops, opcname name_ops, opcnamespace oid_ops))