Re: Autocommit off and transaction isolation level

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Autocommit off and transaction isolation level
Дата
Msg-id 19946.1041518000@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Autocommit off and transaction isolation level  ("Michael Paesold" <mpaesold@gmx.at>)
Ответы Re: Autocommit off and transaction isolation level  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
Список pgsql-hackers
"Michael Paesold" <mpaesold@gmx.at> writes:
> Now setting autocommit=off the set transaction isolation level command does
> not show any effect:

> billing=# set autocommit to off;
> SET
> billing=# set transaction isolation level serializable;
> SET

SET does not start a transaction block, so this will not work.  You must
use an explicit BEGIN before setting TRANSACTION ISOLATION LEVEL.

You might instead set default_transaction_isolation to get the behavior
I think you are looking for.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pg_dump.options.diff
Следующее
От: Justin Clift
Дата:
Сообщение: Re: PostgreSQL Password Cracker