57.2. Встроенные классы операторов

В базовый дистрибутив PostgreSQL включены классы операторов SP-GiST, перечисленные в Таблице 57-1.

Таблица 57-1. Встроенные классы операторов SP-GiST

ИмяИндексируемый тип данныхИндексируемые операторы
kd_point_opspoint<< <@ <^ >> >^ ~=
quad_point_opspoint<< <@ <^ >> >^ ~=
range_opsлюбой тип диапазона&& &< &> -|- << <@ = >> @>
text_opstext< <= = > >= ~<=~ ~<~ ~>=~ ~>~

Из двух классов операторов для типа point классом по умолчанию является quad_point_ops. Класс kd_point_ops поддерживает те же операторы, но использует другую структуру данных индекса, которая может дать выигрыш в скорости для некоторых приложений.

57.2. Built-in Operator Classes

The core PostgreSQL distribution includes the SP-GiST operator classes shown in Table 57-1.

Table 57-1. Built-in SP-GiST Operator Classes

NameIndexed Data TypeIndexable Operators
kd_point_opspoint<< <@ <^ >> >^ ~=
quad_point_opspoint<< <@ <^ >> >^ ~=
range_opsany range type&& &< &> -|- << <@ = >> @>
text_opstext< <= = > >= ~<=~ ~<~ ~>=~ ~>~

Of the two operator classes for type point, quad_point_ops is the default. kd_point_ops supports the same operators but uses a different index data structure which may offer better performance in some applications.

FAQ