Software Development
Non-repeatable reads: why the same row can return a different value
A non-repeatable read occurs when one transaction reads the same row twice, but another transaction changes and commits that row in between, so the second read returns a different value. For example, an order screen reads a product price of 100; another transaction changes it to 120 and commits; a later read in the same workflow now sees 120. This can happen under `READ COMMITTED`, while `REPEATABLE READ` differs across DBMSs. Do not infer behavior from the isolation-level name alone. [PostgreSQL 19: transaction isolation](https://www.postgresql.org/docs/19/transaction-iso.html) · [SQL Server: SET TRANSACTION ISOLATION LEVEL](https://learn.microsoft.com/en-us/sql/t-sql/statements/set-transaction-isolation-level-transact-sql?view=sql-server-ver17)