From: Tom Lane <tgl@sss.pgh.pa.us>
To: Souheila Hechaichi <Souheila.Hechaichi@asg.com>
Cc: 'pgsql-bugs@postgresql.org' <pgsql-bugs@postgresql.org>
Subject: Re: Postgres resources not released after call PQclear
Date: Mon, 07 Apr 2014 12:34:36 -0400
Message-ID: <21547.1396888476@sss.pgh.pa.us> (raw)
In-Reply-To: <693DE4B55EAFC549AD60C5439067053A05B30214F9@usnapexchmbx01.asg.com>
References: <693DE4B55EAFC549AD60C5439067053A05B30214F9@usnapexchmbx01.asg.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Souheila Hechaichi <Souheila.Hechaichi@asg.com> writes:
> I observe that when the row number about a SELECT SQL request is equal to zero, the function PQclear does not release the allocated resources and a memory leak are detected into my application.
This claim is, to be frank, pretty astonishing. Can you produce a
self-contained test case to demonstrate that there's a leak?
> And I call the function _CrtDumpMemoryLeaks() at the end of my application, to display all the memory leak.
I doubt that that proves anything at all. Such a function can't tell
whether libpq is holding onto memory internally. If you see growth in
memory usage over repeated query cycles, then it would be interesting.
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, Souheila.Hechaichi@asg.com
Subject: Re: Postgres resources not released after call PQclear
In-Reply-To: <21547.1396888476@sss.pgh.pa.us>
References: <693DE4B55EAFC549AD60C5439067053A05B30214F9@usnapexchmbx01.asg.com> <21547.1396888476@sss.pgh.pa.us>
* 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