[postgis-tickets] [PostGIS] #3720: geobuf regress error on debbie and winnie
PostGIS
trac at osgeo.org
Mon Mar 6 00:01:58 PST 2017
#3720: geobuf regress error on debbie and winnie
----------------------+----------------------------
Reporter: robe | Owner: Björn Harrtell
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.4.0
Component: postgis | Version: 2.3.x
Resolution: | Keywords:
----------------------+----------------------------
Comment (by strk):
lwgeom_from_gserialized keeps references to the memory allocated
by PG_DETOAST_DATUM, which *might* or might *not* allocate new
memory depending on the size of the geometry (thus multi-ring vs.
single-ring might make a difference). If you want to be sure
to get a copy (assuming you switched the context before calling
the macro) you can use PG_DETOAST_DATUM_COPY instead.
That said, I dunno if the whole context switching is done correctly
as I see the transition function switching to the aggregate context
and never switching back.
See for comparison pgis_geometry_accum_transfn
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3720#comment:28>
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