Re: Loosing connection with the database - Mailing list pgsql-general

From Kris Jurka
Subject Re: Loosing connection with the database
Date
Msg-id Pine.BSO.4.56.0504052130380.25326@leary.csoft.net
Whole thread Raw
In response to Re: Loosing connection with the database  (Poul Møller Hansen <freebsd@pbnet.dk>)
Responses Re: Loosing connection with the database
List pgsql-general

On Sat, 2 Apr 2005, [ISO-8859-1] Poul M�ller 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

pgsql-general by date:

Previous
From: Joe Conway
Date:
Subject: Re: array_append not working
Next
From: Michael Fuhr
Date:
Subject: Re: contrib/dbsize