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