[postgis-users] Memory leaks?

Carman, Darren darren.carman at infoterra-global.com
Fri Aug 17 02:23:59 PDT 2012



We are using postgresql 9.1.4 with postgis 1.5.5 and have been having
problems with what looks like memory leaks. Running a query with
st_intersects in the where clause causes the memory and swap on the
server to be depleted ending up with the postgres process running the
query being killed.


Took me a while to find a solution but it looks like one you already
knew about, or at least I hope it is the right solution.






So I added the missing line to the GetGeomCache function in
lwgeom_cache.c and all appears to be working fine now.


My question is, if this was known about as far back as 1.5.1, why is it
not in the 1.5.5 release? Was it removed because it caused other
problems that I will come across shortly? I am hoping it should be there
and I won't end up with more problems.


Can anyone advise me on what happened with this bug?


Thanks in advance,



Infoterra Ltd. Is part of the Astrium GEO-Information Services Division and a wholly owned subsidiary of Astrium, Europe's leading space systems and services specialist.

Disclaimer. The information contained in this e-mail and its attachments are confidential and intended only for the use of the named addressee(s). If you are not the intended addressee, please do not read, copy, use or disclose this message or its attachments. If you have received this message in error, please notify the sender immediately and delete or destroy all copies of this message and attachments in all media. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Infoterra Ltd and shall not form part of any binding agreement.

Infoterra Limited a company registered in England under number 2359955 and having its registered office at Atlas House, 41 Wembley Road, Leicester, LE3 1UT. VAT number GB 476 0468 27. 

P Before printing, think about the environment 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20120817/63686c00/attachment.html>

More information about the postgis-users mailing list