0

I am new to RDBMS transaction management, and while going through a few articles, a thought crossed my mind - is isolation level set at transaction level, or db/table level, or both?

In case isolation is set at transaction level (as per few examples I came across in the internet), does it revert to the default isolation level (if such a concept exists) when the transaction is complete?

2
  • 1
    Did you check the Postgres documentation for clarification here? Commented Mar 29, 2021 at 19:12
  • 1
    Check the manual: postgresql.org/docs/13/mvcc.html Commented Mar 30, 2021 at 7:07

1 Answer 1

1

The isolation level is a property of the transaction, so you can only set it at the transaction level. The default isolation level is governed by the parameter default_transaction_isolation, which defaults to READ COMMITTED. The isolation level of the previous transaction has no influence on that of the next transaction, unless you use COMMIT AND CHAIN.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.