Re: DEALLOCATE ALL

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: DEALLOCATE ALL
Дата
Msg-id 29372.1175017779@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: DEALLOCATE ALL  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Ответы Re: DEALLOCATE ALL  ("Marko Kreen" <markokr@gmail.com>)
Список pgsql-patches
Alvaro Herrera <alvherre@alvh.no-ip.org> writes:
> Marko Kreen wrote:
>> When pooling connections where prepared statements are in use,
>> it is hard to give new client totally clean connection as
>> there may be allocated statements that give errors when
>> new client starts preparing statements again.

> Huh, didn't we have a RESET SESSION command to do just that?  What about
> cursors, for example?

We don't actually *have* one, but I believe it was agreed that that is
the right API to provide.  If a pooler has to remember to clear prepared
statements, GUCs, cursors, and who knows what else, it'll be perpetually
broken because there'll be something it omits.

There might be a use-case for DEALLOCATE ALL, but needs of poolers
aren't it.  I'd be inclined to vote against this unless someone can
point to a better use-case.

            regards, tom lane

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Recalculating OldestXmin in a long-running vacuum
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Numeric patch to add special-case representations for < 8 bytes