From: Marcin Waldowski <M.Waldowski@sulechow.net>
To: Kris Jurka <books@ejurka.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Locking on PGStream.ReceiveChar(PGStream.java:256)
Date: Fri, 01 Dec 2006 22:55:33 +0100
Message-ID: <4570A4D5.4000707@sulechow.net> (raw)
In-Reply-To: <Pine.BSO.4.64.0612010851140.22186@leary2.csoft.net>
References: <45702B1A.4030401@sulechow.net>
<Pine.BSO.4.64.0612010851140.22186@leary2.csoft.net>
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
>
>
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: M.Waldowski@sulechow.net, books@ejurka.com
Subject: Re: Locking on PGStream.ReceiveChar(PGStream.java:256)
In-Reply-To: <4570A4D5.4000707@sulechow.net>
References: <45702B1A.4030401@sulechow.net> <Pine.BSO.4.64.0612010851140.22186@leary2.csoft.net> <4570A4D5.4000707@sulechow.net>
* 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