Which anomaly does the SQL standard still permit under the REPEATABLE READ isolation level?
Correct answer
D. Phantoms, where a re-run query returns rows inserted since the first run
22 views
D. Phantoms, where a re-run query returns rows inserted since the first run
22 views
Under REPEATABLE READ, rows already read keep their values, so dirty and non-repeatable reads are prevented, but the standard still permits phantoms: new rows matching the predicate can appear on a re-execution. SERIALIZABLE forbids phantoms as well. Implementation matters, because PostgreSQL's snapshot-based REPEATABLE READ actually prevents phantoms, so the expected answer depends on the engine named.
Asked in: NTS, PPSC IT, Interviews
Not sure why the answer is D? Ask here and get an explanation.