select open change scope Open 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 / devel
Unsupported versions: 13 / 12 / 11 / 10 / 9.6 / 9.5 / 9.4 / 9.3 / 9.2 / 9.1 / 9.0 / 8.4 / 8.3 / 8.2 / 8.1 / 8.0 / 7.4 / 7.3 / 7.2 / 7.1
Historical version. PostgreSQL 13 reached end of support in November 2025. See the current version for supported releases.

51.34. pg_operator

The catalog pg_operator stores information about operators. See CREATE OPERATOR and Section 37.14 for more information.

Table 51.34. pg_operator Columns

Column Type

Description

oid oid

Row identifier

oprname name

Name of the operator

oprnamespace oid (references pg_namespace.oid)

The OID of the namespace that contains this operator

oprowner oid (references pg_authid.oid)

Owner of the operator

oprkind char

b = infix (both), l = prefix (left), r = postfix (right)

oprcanmerge bool

This operator supports merge joins

oprcanhash bool

This operator supports hash joins

oprleft oid (references pg_type.oid)

Type of the left operand

oprright oid (references pg_type.oid)

Type of the right operand

oprresult oid (references pg_type.oid)

Type of the result

oprcom oid (references pg_operator.oid)

Commutator of this operator, if any

oprnegate oid (references pg_operator.oid)

Negator of this operator, if any

oprcode regproc (references pg_proc.oid)

Function that implements this operator

oprrest regproc (references pg_proc.oid)

Restriction selectivity estimation function for this operator

oprjoin regproc (references pg_proc.oid)

Join selectivity estimation function for this operator


Unused columns contain zeroes. For example, oprleft is zero for a prefix operator.

Report a documentation issue

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