pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Andrea Spinelli <aspinelli@imteam.it>
Cc: Kris Jurka <books@ejurka.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: executeQuery hangs on busy server - PROPOSAL: socketTimeout parameter
Date: Sun, 12 Aug 2007 11:22:18 +1200
Message-ID: <46BE44AA.4030701@opencloud.com> (raw)
In-Reply-To: <46BC9819.4000807@imteam.it>
References: <46BC20B6.4080409@imteam.it>
	<Pine.BSO.4.64.0708100538530.31534@leary.csoft.net>
	<46BC9819.4000807@imteam.it>

Andrea Spinelli wrote:

> I see your point, but - as far as I know - there is no way of 
> interrupting a running query (short of exiting from the main 
> executable);

Statement.cancel(). If the communication between the client and server 
is intact and the server is still responding, that will eventually 
cancel the query. (In your case, due to a server bug the server is off 
in lala land so I'd guess that cancels won't work)

-O



view thread (6+ messages)

Message-ID: <46BE44AA.4030701@opencloud.com>
Permalink:  ../46BE44AA.4030701@opencloud.com/
Also on:    postgresql.org/message-id/46BE44AA.4030701@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, aspinelli@imteam.it, books@ejurka.com
  Subject: Re: executeQuery hangs on busy server - PROPOSAL: socketTimeout parameter
  In-Reply-To: <46BE44AA.4030701@opencloud.com>
  References: <46BC20B6.4080409@imteam.it> <Pine.BSO.4.64.0708100538530.31534@leary.csoft.net> <46BC9819.4000807@imteam.it> <46BE44AA.4030701@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