From: Oliver Jowett <oliver@opencloud.com>
To: James Im <im-james@hotmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: SQL query never ends
Date: Thu, 10 Aug 2006 19:15:43 +1200
Message-ID: <44DADD1F.1080103@opencloud.com> (raw)
In-Reply-To: <BAY7-F1410A721FD61F05F6F9BE396550@phx.gbl>
References: <BAY7-F1410A721FD61F05F6F9BE396550@phx.gbl>
James Im wrote:
> I'm experimenting a random problem on my PC. Sometimes a sql query
> executed with Statement never returns.
> simple execute,
> handler=org.postgresql.jdbc2.AbstractJdbc2Statement$StatementResultHandler@996cca,
>
> maxRows=0, fetchSize=0, flags=17
> FE=> Parse(stmt=null,query="i've remove the select query",oids={})
> FE=> Bind(stmt=null,portal=null)
> FE=> Describe(portal=null)
> FE=> Execute(portal=null,limit=0)
> FE=> Sync
>
> .. and nothing else. No "<=BE ..." follow the " FE=> Sync" log entry.
This seems normal enough. What is logged immediately before before this?
Can you capture the network traffic between the server and JDBC driver?
If it's a concurrency issue we should see something at the connection
level. I'm not familiar with what windows tools are available to take
network captures (in the unix world I'd use tcpdump/snoop/ethereal), but
if you manage to get something in a format that ethereal will read, send
me the raw capture off-list and I'll take a look.
> I've also tried to put "stmt.setQueryTimeout(3);" but it doesn't seem to
> do anything.
setQueryTimeout() is a no-op in the current driver.
-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, im-james@hotmail.com
Subject: Re: SQL query never ends
In-Reply-To: <44DADD1F.1080103@opencloud.com>
References: <BAY7-F1410A721FD61F05F6F9BE396550@phx.gbl> <44DADD1F.1080103@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