-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support repeatable read and serializable isolation level #1695
Support repeatable read and serializable isolation level #1695
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update commit message to only have change description (remove guidelines)
0c2c257
to
0d9107c
Compare
Signed-off-by: Tanzeel Khan <[email protected]>
Signed-off-by: Tanzeel Khan <[email protected]>
Signed-off-by: Tanzeel Khan <[email protected]>
Signed-off-by: Tanzeel Khan <[email protected]>
Signed-off-by: Tanzeel Khan <[email protected]>
Signed-off-by: Tanzeel Khan <[email protected]>
Signed-off-by: Tanzeel Khan <[email protected]>
Signed-off-by: Tanzeel Khan <[email protected]>
Signed-off-by: Tanzeel Khan <[email protected]>
Signed-off-by: Tanzeel Khan <[email protected]>
Signed-off-by: Tanzeel Khan <[email protected]>
Signed-off-by: Tanzeel Khan <[email protected]>
Signed-off-by: Tanzeel Khan <[email protected]>
@@ -1207,6 +1212,8 @@ int escape_hatch_rowversion = EH_STRICT; | |||
int escape_hatch_showplan_all = EH_STRICT; | |||
int escape_hatch_checkpoint = EH_IGNORE; | |||
int escape_hatch_set_transaction_isolation_level = EH_STRICT; | |||
int pltsql_isolation_level_repeatable_read = ISOLATION_OFF; | |||
int pltsql_isolation_level_serializable = ISOLATION_OFF; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indent
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure why this it is off, both are 2 tabs & 1 space
Signed-off-by: Tanzeel Khan <[email protected]>
Signed-off-by: Tanzeel Khan <[email protected]>
9fab304
into
babelfish-for-postgresql:BABEL_3_X_DEV
Description
Currently we do not support repeatable read and serializable isolation levels.
With this PR
BABEL repeatable read → PG repeatable read (if repeatable read escape hatch is set to pg_isolation)
BABEL serializable → PG serializable (if serializable escape hatch is set to pg_isolation)
REPEATABLE READ GUC:- 'repeatable_read_isolation'
SERIALIZABLE GUC:- 'serializable_isolation'
Issues Resolved
BABEL-4146 & BABEL-4145
Test Scenarios Covered
JDBC : Setting the GUC/ setting all different isolation level.
Python : Concurrent transaction run with one of them being repeatable read while other is read committed. Steps like select, update, delete, insert are used. Different permutations are run to force read/write, write/write concurrency.
Signed-off-by: Tanzeel Khan [email protected]
Check List
By submitting this pull request, I confirm that my contribution is under the terms of the Apache 2.0 and PostgreSQL licenses, and grant any person obtaining a copy of the contribution permission to relicense all or a portion of my contribution to the PostgreSQL License solely to contribute all or a portion of my contribution to the PostgreSQL open source project.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.