X-Original-To: pgsql-jdbc-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id F1C7E9FB284 for ; Wed, 12 Jul 2006 18:43:12 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 79766-08 for ; Wed, 12 Jul 2006 18:43:08 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [131.203.101.226]) by postgresql.org (Postfix) with ESMTP id 619D39FB26C for ; Wed, 12 Jul 2006 18:43:07 -0300 (ADT) Received: from 203-118-178-246.bliink.ihug.co.nz ([203.118.178.246] helo=[10.1.1.6]) by yass.opencloud.co.nz with asmtp (TLS-1.0:DHE_RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1G0mU2-00009x-UA; Thu, 13 Jul 2006 09:43:03 +1200 Message-ID: <44B56CE6.20804@opencloud.com> Date: Thu, 13 Jul 2006 09:43:02 +1200 From: Oliver Jowett User-Agent: Mozilla Thunderbird 1.0.8 (X11/20060502) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Lucas Sousa CC: pgsql-jdbc@postgresql.org Subject: Re: executeQuery Locked References: <44B483D4.3050001@opencloud.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200607/52 X-Sequence-Number: 15478 Lucas Sousa wrote: > I am debugging the driver myself, I am looking into the > PhantomReferences that I think may be the cause of the problem (the > problem seems to me loosely related with the garbage collector frequency) Well, if you collect a trace of the communication between driver and server as I suggested, it will let you work out whether it really is the driver at fault, and what it did around the time of the failure. The PhantomReference stuff is used to free up old server-side prepared statements where the corresponding Java objects have gone away. In theory it shouldn't affect query execution.. > If I do the "set statement_timeout = 60000" on that connection I suppose > that after I release this connection back to the pool and another thread > fetches it the statement timeout will remain set ... is it not? That's right. You could always explicitly set statement_timeout after getting a new connection from the pool, I suppose. -O