61.2. Built-in Operator Classes

The core Postgres Pro Enterprise distribution includes the SP-GiST operator classes shown in Table 61.1.

Table 61.1. Built-in SP-GiST Operator Classes

NameIndexed Data TypeIndexable Operators
kd_point_opspoint << <@ <^ >> >^ ~= <->
quad_point_opspoint << <@ <^ >> >^ ~= <->
range_opsany range type && &< &> -|- << <@ = >> @>
box_opsbox << &< && &> >> ~= @> <@ &<| <<| |>> |&>
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.

By supporting the ordering <-> operator the quad_point_ops and kd_point_ops provide a user with the ability to perform a K-nearest-neighbor search over the indexed point dataset.