Skip to content

Commit 2fa255c

Browse files
committed
doc: clarify text around MVCC example query
Reported-by: marlene.brandstaetter@cargonet.software Discussion: https://postgr.es/m/167765529052.987840.12345375075704447735@wrigleys.postgresql.org Backpatch-through: master
1 parent 4a9effe commit 2fa255c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/src/sgml/mvcc.sgml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -417,8 +417,8 @@
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>
424424
BEGIN;
@@ -427,8 +427,8 @@ UPDATE accounts SET balance = balance - 100.00 WHERE acctnum = 7534;
427427
COMMIT;
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.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy