6 messages in org.postgresql.pgsql-jdbcRe: executeQuery Locked
FromSent OnAttachments
Lucas SousaJul 11, 2006 9:29 am 
Mark LewisJul 11, 2006 10:07 am 
Mark LewisJul 11, 2006 11:26 am 
Oliver JowettJul 11, 2006 10:08 pm 
Lucas SousaJul 12, 2006 4:44 am 
Oliver JowettJul 12, 2006 2:42 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: executeQuery LockedActions...
From:Oliver Jowett (oli@opencloud.com)
Date:Jul 11, 2006 10:08:13 pm
List:org.postgresql.pgsql-jdbc

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