Step 1 · StartYou're seeing SQLSTATE 40001
A transaction failed with could not serialize access due to concurrent update, SQLSTATE 40001. This only happens under REPEATABLE READ or SERIALIZABLE isolation — Postgres detected that letting both this transaction and a concurrent one commit could not have arisen from any serial execution, so it aborted one of them.
What happens next
- passed → step 2, Confirm the transaction is running above READ COMMITTED