Skip to content
RED SAG Skills
medium10 pts · first answer countstransactionsisolation-levelspostgresql

UPDATE re-checks the WHERE clause

In PostgreSQL Read Committed, T1 updates a row to status = 'paid' and holds the lock. T2 runs UPDATE ... SET status = 'cancelled' WHERE id = 5 AND status = 'new' and waits. T1 commits. What does T2 do?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions