Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 64DB49F96BB for ; Sat, 11 Aug 2007 20:22:41 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 53568-08 for ; Sat, 11 Aug 2007 20:22:30 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from tremor.opencloud.co.nz (tremor.opencloud.co.nz [131.203.101.230]) by postgresql.org (Postfix) with ESMTP id 44E989F969C for ; Sat, 11 Aug 2007 20:22:29 -0300 (ADT) Received: from 222-154-138-127.jetstream.xtra.co.nz ([222.154.138.127] helo=[10.1.1.3]) by tremor.opencloud.co.nz with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1IK0Hk-0001wf-7s; Sun, 12 Aug 2007 11:22:20 +1200 Message-ID: <46BE44AA.4030701@opencloud.com> Date: Sun, 12 Aug 2007 11:22:18 +1200 From: Oliver Jowett User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) MIME-Version: 1.0 To: Andrea Spinelli CC: Kris Jurka , pgsql-jdbc@postgresql.org Subject: Re: executeQuery hangs on busy server - PROPOSAL: socketTimeout parameter References: <46BC20B6.4080409@imteam.it> <46BC9819.4000807@imteam.it> In-Reply-To: <46BC9819.4000807@imteam.it> 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: 200708/59 X-Sequence-Number: 17372 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