PostgreSQL
69.2. Built-in Operator Classes
The core PostgreSQL distribution includes the SP-GiST operator classes shown in Table 69.1.
Table 69.1. Built-in SP-GiST Operator Classes
Name | Indexable Operators | Ordering Operators |
---|---|---|
|
|
|
|
||
|
||
|
||
|
||
|
||
|
||
|
||
`+<< |
(box,box)+` |
|
`+&< |
||
(box,box)+` |
||
`+ |
&> (box,box)+` |
|
`+ |
>> (box,box)+` |
|
|
|
|
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
`+ |
|
>> (point,point)+` |
|
|
|
||
|
||
`+<< |
(point,point)+` |
|
|
||
|
||
|
|
|
|
||
|
||
|
||
|
||
|
||
|
||
|
||
`+<< |
(polygon,polygon)+` |
|
`+&< |
||
(polygon,polygon)+` |
||
`+ |
>> (polygon,polygon)+` |
|
`+ |
&> (polygon,polygon)+` |
|
|
`+ |
|
>> (point,point)+` |
|
|
|
||
|
||
`+<< |
(point,point)+` |
|
|
||
|
||
|
|
|
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
`+- |
- (anyrange,anyrange)+` |
|
|
|
|
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
+
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 that may offer better performance in some applications.
The quad_point_ops
, kd_point_ops
and poly_ops
operator classes support the <->
ordering operator, which enables the k-nearest neighbor (k-NN
) search over indexed point or polygon data sets.
Prev | Up | Next |
---|---|---|
69.1. Introduction |
69.3. Extensibility |
Submit correction
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.
Copyright © 1996-2023 The PostgreSQL Global Development Group