reset implementation

Поиск
Список
Период
Сортировка
От Daniele Varrazzo
Тема reset implementation
Дата
Msg-id CA+mi_8ZpW846xkf8wKxNZo1M0Gbhd_sgUV9-9j1ukTGCDQ-p9Q@mail.gmail.com
обсуждение исходный текст
Ответы Re: reset implementation  (Federico Di Gregorio <fog@dndg.it>)
Список psycopg
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].

Ok to use DISCARD in reset() (on pg >= 8.3 only)?

[1] http://www.pgpool.net/docs/latest/doc/pgpool-en.html#RESET_QUERY_LIST
[2] http://www.postgresql.org/docs/current/static/sql-discard.html

-- Daniele

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

Предыдущее
От: Kryklia Alex
Дата:
Сообщение: Re: Question aboud #80 - itersize in cursor dic
Следующее
От: Federico Di Gregorio
Дата:
Сообщение: Re: reset implementation