File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 417417 does not see effects of those commands on other rows in the database.
418418 This behavior makes Read Committed mode unsuitable for commands that
419419 involve complex search conditions; however, it is just right for simpler
420- cases. For example, consider updating bank balances with transactions
421- like :
420+ cases. For example, consider transferring $100 from one account
421+ to another :
422422
423423<screen>
424424BEGIN;
@@ -427,8 +427,8 @@ UPDATE accounts SET balance = balance - 100.00 WHERE acctnum = 7534;
427427COMMIT;
428428</screen>
429429
430- If two such transactions concurrently try to change the balance of account
431- 12345 , we clearly want the second transaction to start with the updated
430+ If another transactions concurrently tries to change the balance of account
431+ 7534 , we clearly want the second statement to start with the updated
432432 version of the account's row. Because each command is affecting only a
433433 predetermined row, letting it see the updated version of the row does
434434 not create any troublesome inconsistency.
You can’t perform that action at this time.
0 commit comments