postgis_mest
mest · Multi-entry spatial indexes for PostGIS geometry
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 102424 | postgis_mest | mest | 1.0 | GIS | C |
PostgreSQL · 17, 18
Usage
Sources:
postgis_mest 1.0 adds multi-entry R-tree indexing for PostGIS geometry. Geometry collections contribute both a whole-geometry bounding box and per-element boxes. Upstream requires PostgreSQL 17 or 18, PostGIS 3 and mest.
Enable and Index
Upstream requires preloading the installed PostGIS library. Add it to the existing setting and restart PostgreSQL; the documented library name is:
After installing the extension libraries, use a privileged database session:
The control file requires postgis and mest. CASCADE installs available dependencies but does not install server library files.
Query Surface
geometry_mgist_ops_2d is the default geometry class for mgist. Its useful query operators include bounding-box overlap && and distance ordering <->.
Use a query geometry with the same spatial reference as the stored data.
Limits
PostGIS planner support functions are not implemented for this access method. A predicate containing only ST_Intersects or ST_Contains will not select the MGiST index through that support mechanism; add an appropriate explicit overlap condition when applicable. Benefits depend on collection shape and query selectivity. Single geometries generally contribute one bounding box.