[postgis-tickets] [PostGIS] #4676: Use PG_GETARG_GSERIALIZED_P_SLICE to access geometry headers

PostGIS trac at osgeo.org
Fri May 1 03:42:59 PDT 2020


#4676: Use PG_GETARG_GSERIALIZED_P_SLICE to access geometry headers
-------------------------+---------------------------
 Reporter:  Raúl Marín   |      Owner:  pramsey
     Type:  enhancement  |     Status:  new
 Priority:  medium       |  Milestone:  PostGIS 3.1.0
Component:  postgis      |    Version:  master
 Keywords:               |
-------------------------+---------------------------
 After the multiple improvements in PG12 in the partial decompression of
 toasted objects (thanks Paul), using PG_GETARG_GSERIALIZED_P_SLICE for
 toasted geometries can lead to big performance improvements in the
 functions that only need the geometry header.


 A quick example using ST_SRID over huge geometries:
 {{{
 explain analyze Select ST_SRID(the_geom) from
 benchmark_4c7214d90a79aa6760367a084a4d4a2f61fbe1c6cc4f7f9e76020;
 -- Before latency average = 16.983 ms
 -- After latency average = 0.145 ms
 -- Perf: 117 x
 }}}

-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4676>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list