Created
April 30, 2015 18:36
-
-
Save b4284/74a6ed59b20f76c893ce to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Connection A: | |
test=> begin; | |
BEGIN | |
test=> update test set foo = 2 where id = 1; | |
UPDATE 1 | |
test=> end; | |
COMMIT | |
Connection B: | |
test=> begin transaction isolation level repeatable read; | |
BEGIN | |
test=> update test set foo = 3 where id = 1; | |
錯誤: 因為並行更新,無法序列化存取 | |
test=> end; | |
ROLLBACK |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment