[postgis-tickets] [PostGIS] #4674: lwgeom_cache doesn't live through not inline functions

PostGIS trac at osgeo.org
Thu Apr 30 05:09:08 PDT 2020


#4674: lwgeom_cache doesn't live through not inline functions
-------------------------+---------------------------
  Reporter:  Raúl Marín  |      Owner:  pramsey
      Type:  defect      |     Status:  new
  Priority:  medium      |  Milestone:  PostGIS 3.1.0
 Component:  postgis     |    Version:  master
Resolution:              |   Keywords:
-------------------------+---------------------------

Comment (by Raúl Marín):

 What if we don't store the pointer to `GenericCacheCollection` it in
 fn_extra? We could have a static pointer to the cache and register a
 callback to nullify the pointer when the context is deleted, right?

 We do something similar with the projection cache (to call the PROJ
 destructor when the context is being removed).

-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4674#comment:2>
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