Two concurrent PostgreSQL transactions each saw two doctors on call, changed different rows, and committed under REPEATABLE READ. The final count was zero. Repeating the same history under SERIALIZABLE produced one commit, one SQLSTATE 40001, and one doctor still on call. A complete retry then reread that ...