Re: Autocommit off and transaction isolation level - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Autocommit off and transaction isolation level
Date
Msg-id 19946.1041518000@sss.pgh.pa.us
Whole thread Raw
In response to Autocommit off and transaction isolation level  ("Michael Paesold" <mpaesold@gmx.at>)
Responses Re: Autocommit off and transaction isolation level  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: pg_dump.options.diff
Next
From: Justin Clift
Date:
Subject: Re: PostgreSQL Password Cracker