SPGiST
SP-GiST, or Space-Partitioned Generalized Search Tree, is an index access method in PostgreSQL designed to support non-balanced, space-partitioning data structures. It provides a framework for implementing specialized index types by partitioning the data space into subspaces, rather than maintaining a single linear ordering. SP-GiST builds on the GiST (Generalized Search Tree) interface and relies on a family of functions that describe how to partition, compare, and navigate index keys.
In SP-GiST, index types are created by supplying a set of methods that govern how nodes are
Common SP-GiST partitioning schemes include quadtrees, k-d trees, prefix trees, and radix trees. Each scheme partitions
Usage and considerations: SP-GiST is suitable for workloads involving spatial or multi-dimensional data, or data with