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 091FB9FB1D0 for ; Tue, 11 Jul 2006 23:08:47 -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 98963-01 for ; Tue, 11 Jul 2006 23:08:41 -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 0285E9FB1B9 for ; Tue, 11 Jul 2006 23:08:41 -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 1G0U9V-0006VD-TR; Wed, 12 Jul 2006 14:08:38 +1200 Message-ID: <44B483D4.3050001@opencloud.com> Date: Wed, 12 Jul 2006 14:08:36 +0900 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: 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/43 X-Sequence-Number: 15469 Lucas Sousa wrote: > stm.setQueryTimeout( timeout ); > It seems to me that for some (weird) reason, the query timeout is bein > achieved without throwing any error or the postgresql driver detecting > that. > > This is some know issue? Unfortunately setQueryTimeout() is currently a no-op. As a workaround, set the server's statement_timeout variable. > Thread [zzzzzzz:12] (Suspended) > SocketInputStream.socketRead0(FileDescriptor, byte[], int, int, int) > line: not available [native method] > SocketInputStream.read(byte[], int, int) line: not available > BufferedInputStream.fill() line: not available > BufferedInputStream.read() line: not available > PGStream.ReceiveChar() line: 256 > QueryExecutorImpl.processResults(ResultHandler, int) line: 1164 The driver is waiting for results from the server. Either the query is still running or something has got confused about what's happening at the protocol level. Can you reproduce this with loglevel=2 set (as a URL parameter, see the driver docs)? Or a tcpdump/snoop/ethereal capture of the connection with the server when it gets stuck would also be useful. Also, if you could attach to the corresponding backend via gdb or similar and get a stack trace that may help. -O