Memory Usage and libpq

From: Keary Suska <hierophant(at)pcisys(dot)net>
To: Postgres-Interfaces <pgsql-interfaces(at)postgresql(dot)org>
Subject: Memory Usage and libpq
Date: 2006-04-04 19:14:52
Message-ID: C05813BC.27D74%hierophant@pcisys.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

I am investigating a memory usage issue and I noticed something with libpq.
It appears that libpq doesn't actually free memory allocated to store
results, even after PQclear() is called. In a debug program I can inspect
the buffer so I know it exists. I haven't verified whether the buffer is
resized with subsequent calls, but when dealing with large result sets it
creates a significant memory overhead.

Am I on to something here or do I need to keep looking? If so, is there any
way that I can force libpq to free or in some way drastically reduce this
biffer?

Thanks,

Keary Suska
(719) 473-6431
(719) 440-9952 (cell)

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Tom Lane 2006-04-04 20:06:06 Re: Memory Usage and libpq
Previous Message Terry Lee Tucker 2006-04-04 18:23:19 Re: Memory Usage and libpq