Re: memory leak occur when disconnect database - Mailing list pgsql-general

From tanjunhua
Subject Re: memory leak occur when disconnect database
Date
Msg-id 069601ca09bf$2d4dfe10$aa1c10ac@RKC.local
Whole thread Raw
In response to Error in insert statement  ("Relyea, Mike" <Mike.Relyea@xerox.com>)
Responses Re: memory leak occur when disconnect database
List pgsql-general
Because of the three-day break, my response is late.

> Valgrind is a great tool, but you must learn how to identify false
> positives and tell the difference between a leak that matters (say 1kb
> allocated and not freed in a loop that runs once per second) and a leak
> that doesn't.

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.


pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: killing processes
Next
From: "tanjunhua"
Date:
Subject: Re: memory leak occur when disconnect database