Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2fa255c

Browse files
committed
doc: clarify text around MVCC example query
Reported-by: marlene.brandstaetter@cargonet.softwareDiscussion:https://postgr.es/m/167765529052.987840.12345375075704447735@wrigleys.postgresql.orgBackpatch-through: master
1 parent4a9effe commit2fa255c

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, considerupdating bank balances with transactions
421-
like:
420+
cases. For example, considertransferring $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-
Iftwo suchtransactions concurrentlytry to change the balance of account
431-
12345, we clearly want the secondtransaction to start with the updated
430+
Ifanothertransactions concurrentlytries to change the balance of account
431+
7534, we clearly want the secondstatement 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)

[8]ページ先頭

©2009-2025 Movatter.jp