Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 859399FA12B for ; Fri, 1 Dec 2006 17:53:10 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 45847-06 for ; Fri, 1 Dec 2006 17:52:59 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from sulechow.net (sulechow.net [194.116.248.30]) by postgresql.org (Postfix) with ESMTP id C38269F9392 for ; Fri, 1 Dec 2006 17:53:02 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by sulechow.net (Postfix) with ESMTP id 5CE7C41AB16; Fri, 1 Dec 2006 22:53:05 +0100 (CET) Received: from sulechow.net ([127.0.0.1]) by localhost (sulechow [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07816-04; Fri, 1 Dec 2006 22:53:05 +0100 (CET) Received: from [10.2.1.39] (nat2-003.sulechow.net [194.116.249.3]) by sulechow.net (Postfix) with ESMTP id 3FE4641AAEC; Fri, 1 Dec 2006 22:53:04 +0100 (CET) Message-ID: <4570A4D5.4000707@sulechow.net> Date: Fri, 01 Dec 2006 22:55:33 +0100 From: Marcin Waldowski User-Agent: Icedove 1.5.0.7 (X11/20061013) MIME-Version: 1.0 To: Kris Jurka CC: pgsql-jdbc@postgresql.org Subject: Re: Locking on PGStream.ReceiveChar(PGStream.java:256) References: <45702B1A.4030401@sulechow.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by mks-vir (http://www.mks.com.pl) at sulechow.net X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/31 X-Sequence-Number: 16263 I don't know a protocol yet, but perhaps it is possible to detect such problem with PostgreSQL database and throw SQLException. In this way stablity of Postgresql jdbc driver will be independent from stability of PostgreSQL (jdbc will not hang). If you tell me that it is possible and worth doing then I will try to find a solution and make a patch. Marcin Waldowski Kris Jurka wrote: > > > On Fri, 1 Dec 2006, Marcin Waldowski wrote: > >> Hello. >> >> JDBC version: 8.1-407 JDBC 3 PostgreSQL version: 8.1.5-1 for Windows >> Database encoding: UTF8 >> >> I observed a lock at at >> org.postgresql.core.PGStream.ReceiveChar(PGStream.java:256) >> >> It happens after about hour of our perfomance test (high workload - >> 50 threads are executing various short operations on database) >> >> What can I do to avoid this problem? >> > > This sort of problem has been attributed to the windows port of > postgresql. This thread here resulted in a fix that will be included > in the 8.1.6 release and may fix the problem. > > http://archives.postgresql.org/pgsql-hackers/2006-10/thrd7.php#00289 > > Kris Jurka > >