[postgis-devel] [PostGIS] #851: [raster] Numerous ST_Value query cause the memory to grow indefinitely

PostGIS trac at osgeo.org
Tue Mar 15 07:27:45 PDT 2011


#851: [raster] Numerous ST_Value query cause the memory to grow indefinitely
----------------------------+-----------------------------------------------
 Reporter:  pracine         |       Owner:  pracine      
     Type:  defect          |      Status:  new          
 Priority:  critical        |   Milestone:  PostGIS 2.0.0
Component:  postgis raster  |     Version:  trunk        
 Keywords:                  |  
----------------------------+-----------------------------------------------

Comment(by jorgearevalo):

 I don't really find the meaning of the three fist lines of
 "get_rt_context"

 rt_context ctx = 0;

 MemoryContext old_context;

 if ( ctx ) return ctx;

 As strk said, seems that ctx was a static variable sometime in the past,
 but now the third line has no sense.

 Pierre, did you find any problem with get_rt_context? Do you have a log?
 I'm trying to reproduce it before applying the suggested changes (make ctx
 static, replace palloc by malloc).

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/851#comment:9>
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-devel mailing list