Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id BE7F763340A for ; Thu, 7 May 2009 04:21:40 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 76860-05 for ; Thu, 7 May 2009 04:21:29 -0300 (ADT) X-Greylist: delayed 00:24:51.624908 by SQLgrey-1.7.6 Received: from ikoffice.de (ikoffice.de [81.169.166.92]) by mail.postgresql.org (Postfix) with ESMTP id 2F7906321B3 for ; Thu, 7 May 2009 04:21:25 -0300 (ADT) Received: from p5481c8ab.dip.t-dialin.net ([84.129.200.171] helo=[192.168.1.16]) by ikoffice.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.66) (envelope-from ) id 1M1xWv-0003cj-M9 for pgsql-jdbc@postgresql.org; Thu, 07 May 2009 08:56:31 +0200 Message-ID: <4A02861D.1070505@ikoffice.de> Date: Thu, 07 May 2009 08:56:29 +0200 From: Daniel Migowski User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: Thread hangs in VisibleBufferedInputStream.readMore References: <20090428061649.GA5531@net-track.ch> <49F6A066.8010105@opencloud.com> <20090428114048.GF7543@net-track.ch> <20090428195540.GA21951@net-track.ch> In-Reply-To: <20090428195540.GA21951@net-track.ch> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Bar: - X-Spam-Score-Int: -17 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200905/43 X-Sequence-Number: 19593 Hello Oliver, This is a problem with a full receive buffer on the client side blocking the server from writing more results while the client tries to send more commands to server. Either split your server input into several single statements or increase the receive buffer size of your client. Daniel Migowski PS: I'd like this problem to be solved, too, but this would need either a multithreaded driver, or some timeout handling within the driver, both coming with some small performance losses. Maybe an option should be added to the driver here... Oliver Hitz schrieb: > On 28 Apr 2009, Oliver Hitz wrote: > >> Anything else that I could try? I will try if loglevel=2 results in some >> useful output now. >> > > Ok now here's a query that hangs after it has been sent. Right after > "Sync" the program hangs: > > 19:24:45.594 (172) simple execute, handler=org.postgresql.jdbc2.AbstractJdbc2Statement$StatementResultHandler@d7e2b57, maxRows=0, fetchSize=0, flags=17 > 19:24:45.594 (172) FE=> Parse(stmt=null,query="SELECT changes.what,changes.whenchanged FROM changes WHERE what=$1 AND whenchanged>$2",oids={1043,0}) > 19:24:45.594 (172) FE=> Bind(stmt=null,portal=null,$1=<'docsiscmts'>,$2=<'2009-04-28 13:41:32.425000 +02:00:00'>) > 19:24:45.594 (172) FE=> Describe(portal=null) > 19:24:45.594 (172) FE=> Execute(portal=null,limit=0) > 19:24:45.594 (172) FE=> Sync > > Nothing special on the backend. From what I can see, all processes are in > idle state. > > Any idea what could be wrong here? > > Thanks in advance, > > Oliver >