From: Oliver Jowett <oliver@opencloud.com>
To: Lucas Sousa <lucas75@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: executeQuery Locked
Date: Wed, 12 Jul 2006 14:08:36 +0900
Message-ID: <44B483D4.3050001@opencloud.com> (raw)
In-Reply-To: <cccdaefb0607110929w6117e9d3w6904c7fd73fe5399@mail.gmail.com>
References: <cccdaefb0607110929w6117e9d3w6904c7fd73fe5399@mail.gmail.com>
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
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: <44B483D4.3050001@opencloud.com>
References: <cccdaefb0607110929w6117e9d3w6904c7fd73fe5399@mail.gmail.com> <44B483D4.3050001@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