Re: memory leak occur when disconnect database

From: Craig Ringer <craig(at)postnewspapers(dot)com(dot)au>
To: tanjunhua <tanjh(at)riso(dot)co(dot)jp>
Cc: Postgres General Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: memory leak occur when disconnect database
Date: 2009-07-21 06:48:29
Message-ID: 1248158909.894.74.camel@ayaki
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, 2009-07-21 at 13:53 +0900, tanjunhua wrote:

> I get the memory leak scenario not only from Valgrind, but also from the
> output of top command.
> At first I think the memory leak occur when I disconnect database by
> Valgrind, then I write a test sample that just connect and disconnect
> database in a infinite loop to check it. after 1 hour performation, 7M
> memory is leaked.

OK, that's interesting.

Please provide full, buildable source code for your standalone test
program (or confirm it also occurs with the sources I posted) and the
output of:

valgrind --leak-check=full ./testprogram

--
Craig Ringer

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Janning Vygen 2009-07-21 07:31:50 Re: suggestion: log_statement = sample
Previous Message tanjunhua 2009-07-21 05:17:58 Re: memory leak occur when disconnect database