Lost update
Concurrency anomaly: two transactions read the same row, both modify based on read-value, the second write overwrites the first. Read-modify-write pattern without locks → guaranteed bug under contention.
Classic: counter increment. Tx1 reads n=5, computes 6. Tx2 reads n=5, computes 6. Both write 6. Result: n=6 (lost an increment). Defense options: (1) atomic operations (UPDATE counter SET n = n + 1), (2) SELECT ... FOR UPDATE (row lock), (3) optimistic concurrency control (version field, retry on conflict), (4) SERIALIZABLE isolation. PostgreSQL REPEATABLE READ + UPDATE detects and aborts the transaction with "could not serialize". Modern web apps: typically OCC pattern + retry loop.