PG Doc comments form <nore...@postgresql.org> writes: > I believe there is a mistake in an example on > https://www.postgresql.org/docs/current/transaction-iso.html section > 13.2.1: > BEGIN; > UPDATE accounts SET balance = balance + 100.00 WHERE acctnum = 12345; > UPDATE accounts SET balance = balance - 100.00 WHERE acctnum = 7534; > COMMIT;
> The acctnum is expected to be 12345 in both cases. No, I think that's intentional: the example depicts transferring $100 from account 7534 to account 12345. regards, tom lane