[postgis-tickets] [PostGIS] #4695: ERROR: GetGenericCacheCollection: Could not find upper context ST_AsGeoJSON and pg13
PostGIS
trac at osgeo.org
Tue May 26 01:27:59 PDT 2020
#4695: ERROR: GetGenericCacheCollection: Could not find upper context
ST_AsGeoJSON and pg13
----------------------+---------------------------
Reporter: robe | Owner: pramsey
Type: defect | Status: new
Priority: blocker | Milestone: PostGIS 3.1.0
Component: postgis | Version: master
Resolution: | Keywords:
----------------------+---------------------------
Comment (by Algunenano):
> You think it might be related to there removal of stuff in 13 around
heap/table
No, it's related to the cache I added to ST_AsGeoJSON to limit the amount
of accesses to spatial_ref_sys (ideally to do it just once per relation).
The problem comes from the fact that we cache our stuff in the parent
memory context, but when we use `DirectFunctionCall` we are calling it
without declaring a parent, so it fails when trying to use the cache.
I can reproduce it in PG12 with latest Postgis, so it should be an easy
fix.
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4695#comment:6>
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