Repository navigation
Upgrades to pgrx 0.20.1, moves PostgreSQL 19 support to 19.0 GA, fixes geometry bounding-box, parallel-query, and Jenks edge-case bugs, and improves coordinate transform and Jenks performance.
Compatibility
Minimum PostgreSQL versions for both runtime servers and build headers:
| PostgreSQL major | Minimum version |
|---|---|
| 15 | 15.20 |
| 16 | 16.16 |
| 17 | 17.12 |
| 18 | 18.7 |
| 19 | 19.0 |
Later minor releases within each listed major are supported. These minimums include the composite-datum security fix (CVE-2026-6460); current binaries cannot load on earlier minor releases.
Source builds require Rust 1.99.1 and cargo-pgrx 0.20.1.
Upgrading from 0.0.8
After installing the matching 0.0.9 package, reconnect and run:
ALTER EXTENSION pg_eviltransform UPDATE TO '0.0.9';The upgrade preserves existing function OIDs and dependent views. Because 0.0.9 fixes stale cached bounding boxes on transformed geometries, recompute stored custom-transform results from original geometries, refresh affected materialized views, and rebuild expression indexes using ST_EvilTransform.
Fixes and Improvements
- Recomputes cached geometry bounding boxes after custom coordinate transforms and avoids mutating borrowed input buffers in place.
- Fixes parallel-query failures (
cannot assign transaction IDs during a parallel operation) by replacing read-write SPI with read-only catalog scans during PostGIS schema lookup. - Moves text overloads of
ST_EvilTransforminto C/Rust so all overloads resolve PostGIS independently ofsearch_path, with database-aware, syscache-invalidated catalog and per-call-siteFmgrInfocaching across schema renames and PostGIS recreation. - Guards against PostGIS v2
G2FLAG_EXTENDEDheaders and treatsNaNordinates as outside China so aNaNaxis cannot corrupt a finite partner ordinate. - Normalizes values before prefix-sum variance computation in
ST_JenksBinsto prevent catastrophic cancellation, overflow, and underflow, and raises clean SQL errors onNULLaggregatebreaksorinvertarguments. - Preserves Z/M ordinates in the reference
regex_eviltransform.sqlscript and updates packaging, CI, and documentation for PostgreSQL 19.0 GA.
Performance
Adds per-call-site FmgrInfo caching (preserving PostGIS's PROJSRSCache across rows), an in-place fast path for non-bbox Cartesian POINT geometries, direct RTPOINTARRAY traversal for Cartesian geometries, zero-alloc text forwarding, and lower-allocation Jenks array/DP execution with portable release builds unchanged.
In local ARM64 paired benchmarks on PostgreSQL 19.0 GA against the pre-optimization pgrx 0.20.0 build, median execution times improved by roughly 22-26% on point and composed coordinate queries, 9-13% on toasted lines and polygons, 8-15% on duplicate-heavy Jenks workloads, and 59% on 10k-value unique Jenks arrays.