[PyGreSQL] Memory leak, please help me see what I am doing wrong.

Christoph Zwerschke cito at online.de
Sun Feb 7 10:11:33 EST 2010


Am 05.02.2010 21:12 schrieb D'Arcy J.M. Cain:
> How long are you running this?  Is ten minutes enough to see this
> behaviour or do I need to run it for hours or days?

Also, are you connecting to a local or remote database? I just tried 
with a remote database and now I can see such an effect, too.

However, the C code of PyGreSQL looks ok to me. There is a destructor 
method for the pg object, and the connection is properly closed with 
PQfinish() on close and in the destructor. If it's only happening with a 
remote database that also indicates it is a libpq problem.

Needs more investigation.

-- Christoph


More information about the PyGreSQL mailing list