could not serialize access due to concurrent update
Postgres 15, we turned on REPEATABLE READ for a reporting job and now get:
ERROR: could not serialize access due to concurrent update
CONTEXT: SQL statement "UPDATE accounts SET balance = balance + $1 WHERE id = $2"
This never happened under READ COMMITTED. I understand RR gives a stable snapshot, but why does a plain update conflict? Should I just switch back?
4 replies