pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Lucas Sousa <lucas75@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: executeQuery Locked
Date: Thu, 13 Jul 2006 09:43:02 +1200
Message-ID: <44B56CE6.20804@opencloud.com> (raw)
In-Reply-To: <cccdaefb0607120445u4053d6dey7eb7adbae94413a9@mail.gmail.com>
References: <cccdaefb0607110929w6117e9d3w6904c7fd73fe5399@mail.gmail.com>
	<44B483D4.3050001@opencloud.com>
	<cccdaefb0607120445u4053d6dey7eb7adbae94413a9@mail.gmail.com>

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



view thread (6+ messages)

Message-ID: <44B56CE6.20804@opencloud.com>
Permalink:  ../44B56CE6.20804@opencloud.com/
Also on:    postgresql.org/message-id/44B56CE6.20804@opencloud.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: oliver@opencloud.com, lucas75@gmail.com
  Subject: Re: executeQuery Locked
  In-Reply-To: <44B56CE6.20804@opencloud.com>
  References: <cccdaefb0607110929w6117e9d3w6904c7fd73fe5399@mail.gmail.com> <44B483D4.3050001@opencloud.com> <cccdaefb0607120445u4053d6dey7eb7adbae94413a9@mail.gmail.com> <44B56CE6.20804@opencloud.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox