↑↓ select↵ open⌫ change scopeOpen full search

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

Supported versions: Current (18) / 17 / 16 / 15 / 14
Development versions: 19 / 20devel
Unsupported versions: 13 / 12 / 11 / 10 / 9.6 / 9.5 / 9.4 / 9.3 / 9.2 / 9.1 / 9.0 / 8.4 / 8.3
Historical version. PostgreSQL 12 has reached end of support. 2024-11-21. See the current manual.

51.35. pg_opfamily

The catalog pg_opfamily defines operator families. Each operator family is a collection of operators and associated support routines that implement the semantics specified for a particular index access method. Furthermore, the operators in a family are all “compatible”, in a way that is specified by the access method. The operator family concept allows cross-data-type operators to be used with indexes and to be reasoned about using knowledge of access method semantics.

Operator families are described at length in Section 37.16.

Table 51.35. pg_opfamily Columns

NameTypeReferencesDescription
oidoid Row identifier
opfmethodoidpg_am.oidIndex access method operator family is for
opfnamename Name of this operator family
opfnamespaceoidpg_namespace.oidNamespace of this operator family
opfowneroidpg_authid.oidOwner of the operator family

The majority of the information defining an operator family is not in its pg_opfamily row, but in the associated rows in pg_amop, pg_amproc, and pg_opclass.

Report a documentation issue

Read the upstream documentation. For corrections, first check the current manual.