pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Keary Suska <hierophant@pcisys.net>
To: Postgres-Interfaces <pgsql-interfaces@postgresql.org>
Subject: Memory Usage and libpq
Date: Tue, 04 Apr 2006 12:14:52 -0700
Message-ID: <C05813BC.27D74%hierophant@pcisys.net> (raw)

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)




view thread (4+ messages)  latest in thread

Message-ID: <C05813BC.27D74%hierophant@pcisys.net>
Permalink:  ../C05813BC.27D74%25hierophant@pcisys.net/
Also on:    postgresql.org/message-id/C05813BC.27D74%hierophant@pcisys.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: hierophant@pcisys.net
  Subject: Re: Memory Usage and libpq
  In-Reply-To: <C05813BC.27D74%hierophant@pcisys.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox