Re: Multiple result sets

Поиск
Список
Период
Сортировка
От Adam Rich
Тема Re: Multiple result sets
Дата
Msg-id 03bd01c8c418$87dc4c80$9794e580$@r@sbcglobal.net
обсуждение исходный текст
Ответ на Multiple result sets  (Clodoaldo <clodoaldo.pinto.neto@gmail.com>)
Список pgsql-general
> I need that 5 queries, fired from the same ajax request to a web
> python application, see the same database snapshot. The driver is
> psycopg2.
>
> Since postgresql 8.2 functions can't return multiple result sets what
> would be the best aproach?
>

You want to set your transaction isolation to "Serializable".
Then execute your 5 queries via the same connection, and the same
Transaction.

You can do that with this command:

BEGIN TRANSACTION ISOLATION LEVEL SERIALIZABLE;






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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Multiple result sets
Следующее
От: Clodoaldo
Дата:
Сообщение: Re: Multiple result sets