Pete Kay <petedao@xxxxxxxxx> 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 -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general