Re: reset implementation

Поиск
Список
Период
Сортировка
От Federico Di Gregorio
Тема Re: reset implementation
Дата
Msg-id 4FB51770.2050407@dndg.it
обсуждение исходный текст
Ответ на reset implementation  (Daniele Varrazzo <daniele.varrazzo@gmail.com>)
Ответы Re: reset implementation  (Daniele Varrazzo <daniele.varrazzo@gmail.com>)
Список psycopg
On 17/05/12 17:06, Daniele Varrazzo wrote:
> Hello
>
> psycopg implements the connection.reset() method using the commands
> RESET ALL and SET SESSION AUTHORIZATION DEFAULT.
>
> Reading pgpool2 docs [1], I see that from PG 8.3 "DISCARD ALL" would
> be more appropriate: it is equivalient to RESET ALL and SET SESSION
> AUTHORIZATION DEFAULT plus more [2].

What bothers me is that executes the equivalent of:

UNLISTEN *;

IMHO that's correct for connection.reset() but I don't know how many
people out there are using NOTIFY and .reset() togheter and I don't want
to break their code.

federico

--
Federico Di Gregorio                         federico.digregorio@dndg.it
Studio Associato Di Nunzio e Di Gregorio                  http://dndg.it
 And anyone who yells "fork" deserves to get one stuck in them.
                                                          -- Dan Winship

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

Предыдущее
От: Daniele Varrazzo
Дата:
Сообщение: reset implementation
Следующее
От: Daniele Varrazzo
Дата:
Сообщение: Re: reset implementation