Re: WITH HOLD and pooled connections

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: WITH HOLD and pooled connections
Дата
Msg-id 200308082022.h78KMcw11487@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: WITH HOLD and pooled connections  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: WITH HOLD and pooled connections  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane wrote:
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > Seems we have a problem with pooled connections and WITH HOLD cursors.
> > We have code to reset transaction state and variables via RESET ALL, but
> > how do we remove WITH HOLD cursors when we pass a connection to a new
> > client?
> 
> Prepared statements would be just as much of a problem.  I think the
> correct answer is simply "don't use those features in a pooled
> environment".

Yuck.  I can't think of any other option.  The pooled connections are
all the same user, so there isn't any permission issue here.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


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

Предыдущее
От: Rod Taylor
Дата:
Сообщение: Re: WITH HOLD and pooled connections
Следующее
От: Rod Taylor
Дата:
Сообщение: Re: WITH HOLD and pooled connections