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 417
417
does not see effects of those commands on other rows in the database.
418
418
This behavior makes Read Committed mode unsuitable for commands that
419
419
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 :
422
422
423
423
<screen>
424
424
BEGIN;
@@ -427,8 +427,8 @@ UPDATE accounts SET balance = balance - 100.00 WHERE acctnum = 7534;
427
427
COMMIT;
428
428
</screen>
429
429
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
432
432
version of the account's row. Because each command is affecting only a
433
433
predetermined row, letting it see the updated version of the row does
434
434
not create any troublesome inconsistency.
You can’t perform that action at this time.
0 commit comments