Skip site navigation (1) Skip section navigation (2)

Re: Memory leak in 8.0 JDBC driver?

From: Kris Jurka <books(at)ejurka(dot)com>
To: Albe Laurenz <all(at)adv(dot)magwien(dot)gv(dot)at>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Memory leak in 8.0 JDBC driver?
Date: 2005-08-12 18:26:23
Message-ID: Pine.BSO.4.62.0508121322490.14258@leary.csoft.net (view raw or flat)
Thread:
Lists: pgsql-jdbc

On Fri, 12 Aug 2005, Albe Laurenz wrote:

> I think that I have found the memory leak, and it is indeed in the JDBC 
> driver. All code references in the following refer to the 8.0-312 JDBC 
> Source.

Yes, you have.  I've put fixes into CVS for both the 8.0 and 8.1 branches.

> where an org.postgresql.util.PSQLWarning is retrieved with the contents:
> LOG: statement: INSERT INTO PARENT (ID, NAME, NUMMER) VALUES ($1, $2,
> $3)
>

The reason we haven't seen reports of this before is that you appear to 
have enabled statement logging and adjusted client_min_messages to "log" 
so by default these messages never get to the client.

Excellent analysis.

Kris Jurka

In response to

pgsql-jdbc by date

Next:From: Kris JurkaDate: 2005-08-12 18:36:05
Subject: Re: problem with stored procedure ,transaction and jdbc
Previous:From: Andres LedesmaDate: 2005-08-12 18:25:07
Subject: Re: problem with stored procedure ,transaction and jdbc

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group