Re: Problem with Memory Leak

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Pete Kay <petedao(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Problem with Memory Leak
Date: 2010-03-26 06:38:10
Message-ID: 4994.1269585490@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Pete Kay <petedao(at)gmail(dot)com> writes:
> I am setting up a connection pooling obj to pool a bunch of
> PGConnection object. That is why I am not closing the PGConn object
> when the query is done.

> Is that the right way to do it?

Well, that's fine, but you should not be complaining about some memory
associated with the PGconn not being reclaimed yet in that state.

I guess the context we are missing is why is it you are worried about
valgrind reporting a memory leak of a kilobyte or so?

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Роман Маширов 2010-03-26 10:15:23 Re: Avoiding deadlocks on mass delete / update
Previous Message Yogi Yang 007 2010-03-26 04:42:19 Re: How to retrieve List of Tables in a Database using...