postgresql_16:3.8.2.4 SP-GiST
PostgreSQL 16 > The SQL Language > Indexes > Index Types > SP-GiST
SP-GiST indexes, like GiST indexes, offer an infrastructure that supports various kinds of searches. SP-GiST permits implementation of a wide range of different non-balanced disk-based data structures, such as quadtrees, k-d trees, and radix trees (tries). As an example, the standard distribution of PostgreSQL includes SP-GiST operator classes for two-dimensional points, which support indexed queries using these operators: << >> ~= <@ <<| |>> (See (see postgresql_16:3.6.11) for the meaning of these operators.) The SP-GiST operator classes included in the standard distribution are documented in (see spgist-builtin-opclasses-table). For more information see (see postgresql_16:8.18).
Like GiST, SP-GiST supports “nearest-neighbor” searches. For SP-GiST operator classes that support distance ordering, the corresponding operator is listed in the “Ordering Operators” column in (see spgist-builtin-opclasses-table).