65.2. Встроенные классы операторов
В базовый дистрибутив Postgres Pro включены классы операторов GIN, перечисленные в Таблице 65.1. (Некоторые дополнительные модули, описанные в Приложении F, добавляют другие классы операторов GIN.)
Таблица 65.1. Встроенные классы операторов GIN
| Имя | Индексируемый тип данных | Индексируемые операторы |
|---|---|---|
array_ops | anyarray | && <@ = @> |
jsonb_ops | jsonb | ? ?& ?| @> |
jsonb_path_ops | jsonb | @> |
tsvector_ops | tsvector | @@ @@@ |
Из двух классов операторов для типа jsonb классом по умолчанию является jsonb_ops. Класс jsonb_path_ops поддерживает меньше операторов, но обеспечивает для них большую производительность. За подробностями обратитесь к Подразделу 8.14.4.
65.2. Built-in Operator Classes
The core Postgres Pro distribution includes the GIN operator classes shown in Table 65.1. (Some of the optional modules described in Appendix F provide additional GIN operator classes.)
Table 65.1. Built-in GIN Operator Classes
| Name | Indexed Data Type | Indexable Operators |
|---|---|---|
array_ops | anyarray | && <@ = @> |
jsonb_ops | jsonb | ? ?& ?| @> |
jsonb_path_ops | jsonb | @> |
tsvector_ops | tsvector | @@ @@@ |
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.