From: | Kris Jurka <books(at)ejurka(dot)com> |
---|---|
To: | Poul Møller Hansen <freebsd(at)pbnet(dot)dk> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: Loosing connection with the database |
Date: | 2005-04-06 02:33:26 |
Message-ID: | Pine.BSO.4.56.0504052130380.25326@leary.csoft.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Sat, 2 Apr 2005, [ISO-8859-1] Poul Mller Hansen wrote:
> >This sort of thing has been seen to occur when multiple client-side
> >threads try to use the same database connection without proper locking
> >to ensure only one thread uses it at a time. See for example
> >http://archives.postgresql.org/pgsql-hackers/2004-09/msg00104.php
> >
> This is exactly what I am doing. Must admit I haven't considered that as
> an issue. For performance reasons I suppose one database connection per
> client are preferred rather than using synchronized on the db class ?
>
The JDBC driver should be doing any synchronization necessary for multiple
threads. Could you be more clear what you are doing? What driver
version? Any chance you've got a reproducible example?
Kris Jurka
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Fuhr | 2005-04-06 04:21:51 | Re: contrib/dbsize |
Previous Message | Joe Conway | 2005-04-06 00:15:38 | Re: array_append not working |