X-Original-To: pgsql-jdbc-postgresql.org@postgresql.org Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id EF12D9FB2E3 for ; Thu, 10 Aug 2006 04:15:59 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 29201-01 for ; Thu, 10 Aug 2006 07:15:50 +0000 (UTC) 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 2C1E29FB2D5 for ; Thu, 10 Aug 2006 04:15:49 -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 1GB4ld-0001re-MH; Thu, 10 Aug 2006 19:15:46 +1200 Message-ID: <44DADD1F.1080103@opencloud.com> Date: Thu, 10 Aug 2006 19:15:43 +1200 From: Oliver Jowett User-Agent: Mozilla Thunderbird 1.0.8 (X11/20060502) X-Accept-Language: en-us, en MIME-Version: 1.0 To: James Im CC: pgsql-jdbc@postgresql.org Subject: Re: SQL query never ends 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-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200608/55 X-Sequence-Number: 15582 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