Re: Loosing connection with the database

Поиск
Список
Период
Сортировка
Искать
От
Kris Jurka
Тема
Re: Loosing connection with the database
Дата
Msg-id
Pine.BSO.4.56.0504052130380.25326@leary.csoft.net
Ответ на
Список
Дерево обсуждения
Loosing connection with the database Poul Møller Hansen <freebsd@pbnet.dk>
Re: Loosing connection with the database Tom Lane <tgl@sss.pgh.pa.us>
Re: Loosing connection with the database Poul Møller Hansen <freebsd@pbnet.dk>
Re: Loosing connection with the database Kris Jurka <books@ejurka.com>
Re: Loosing connection with the database Poul Møller Hansen <freebsd@pbnet.dk>
Re: Loosing connection with the database Kris Jurka <books@ejurka.com>


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 по дате отправления
От: Joe Conway
Дата:
Сообщение: Re: array_append not working
От: Michael Fuhr
Дата:
Сообщение: Re: contrib/dbsize
FAQ