Re: using the same connection?

Поиск
Список
Период
Сортировка
От Mathieu Dube
Тема Re: using the same connection?
Дата
Msg-id 01020614154800.03034@therver.local2.lan
обсуждение исходный текст
Ответ на Re: using the same connection?  (ncm@zembu.com (Nathan Myers))
Список pgsql-hackers
Well actually this particular connection is just for selects...

On Tue, 06 Feb 2001, you wrote:
> On Tue, Feb 06, 2001 at 11:08:49AM -0500, Mathieu Dube wrote:
> > Hi y'all,
> >     Is it a bad idea for an app to keep just a couple of connections to a
> > database, put semaphore/mutex on them and reuse them all through the program?
> >     Of course I would check if their PQstatus isnt at CONNECTION_BAD and
> > reconnect if they were...
> 
> You would have to hold the lock from BEGIN until COMMIT.
> Otherwise, connection re-use is normal.  
> 
> Nathan Myers
> ncm@zembu.com
-- 
Mathieu Dube    
Mondo-Live            
www.flipr.com


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Karel Zak
Дата:
Сообщение: Re: 25 March 2001 bug
Следующее
От: Lamar Owen
Дата:
Сообщение: Re: Include files for SPI are not installed