Re: transaction_isolation vs. default_transaction_isolation - Mailing list pgsql-hackers

From Itagaki Takahiro
Subject Re: transaction_isolation vs. default_transaction_isolation
Date
Msg-id 20091013142039.A6FE.52131E4D@oss.ntt.co.jp
Whole thread Raw
In response to transaction_isolation vs. default_transaction_isolation  (Josh Berkus <josh@agliodbs.com>)
Responses Re: transaction_isolation vs. default_transaction_isolation
List pgsql-hackers
Josh Berkus <josh@agliodbs.com> wrote:

> default_transaction_isolation
> default_transaction_read_only

They are settings of transaction_isolation and transaction_read_only
for *next* transactions, no?

> transaction_isolation
> transaction_read_only

Non-default versions are almost read-only variables
because we can set them at the beginning of transactions.

BEGIN;
SET transaction_isolation = 'serializable';
SET default_transaction_isolation = 'read committed';
SHOW transaction_isolation;   => serializable
SHOW default_transaction_isolation;   => read committed
COMMIT;
-- next transaction uses default_transaction_isolation
SHOW transaction_isolation;   => read committed

Regards,
---
ITAGAKI Takahiro
NTT Open Source Software Center




pgsql-hackers by date:

Previous
From: Josh Berkus
Date:
Subject: transaction_isolation vs. default_transaction_isolation
Next
From: Jeff Davis
Date:
Subject: Re: transaction_isolation vs. default_transaction_isolation