RefLib

Reference library for AI

Back

postgresql_16:8.19.2 Built-in Operator Classes

PostgreSQL 16 > Internals > GIN Indexes > Built-in Operator Classes

The core PostgreSQL distribution includes the GIN operator classes shown in (see gin-builtin-opclasses-table). (Some of the optional modules described in (see postgresql_16:9.6) provide additional GIN operator classes.)

| Name | Indexable Operators | | --- | --- | | array_ops | && (anyarray,anyarray) | | @> (anyarray,anyarray) | | | <@ (anyarray,anyarray) | | | = (anyarray,anyarray) | | | jsonb_ops | @> (jsonb,jsonb) | | @? (jsonb,jsonpath) | | | @@ (jsonb,jsonpath) | | | ? (jsonb,text) | | | ?\| (jsonb,text[]) | | | ?& (jsonb,text[]) | | | jsonb_path_ops | @> (jsonb,jsonb) | | @? (jsonb,jsonpath) | | | @@ (jsonb,jsonpath) | | | tsvector_ops | @@ (tsvector,tsquery) | | @@@ (tsvector,tsquery) | |

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 (see postgresql_16:3.5.14.4) for details.

Back