↑↓ select↵ open⌫ change scopeOpen full search

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

Supported versions: 16 / 15 / 14
Unsupported versions: 13 / 12 / 11 / 10 / 9.6 / 9.5 / 9.4
Historical version. PostgreSQL 10 has reached end of support. 2022-11-10. See the current manual.

64.2. Built-in Operator Classes

The core PostgreSQL distribution includes the GIN operator classes shown in Table 64.1. (Some of the optional modules described in Appendix F provide additional GIN operator classes.)

Table 64.1. Built-in GIN Operator Classes

NameIndexed Data TypeIndexable Operators
array_opsanyarray && <@ = @>
jsonb_opsjsonb ? ?& ?| @>
jsonb_path_opsjsonb @>
tsvector_opstsvector @@ @@@

Of the two operator classes for type jsonb, jsonb_ops is the default. jsonb_path_ops supports fewer operators but offers better performance for those operators. See Section 8.14.4 for details.

Report a documentation issue

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