serialization failure (SQLSTATE 40001)
RU: serialization failure (SQLSTATE 40001)
An error (SQLSTATE 40001) PostgreSQL raises when SSI or REPEATABLE READ detects that committing a transaction would violate serializability. The transaction is rolled back and must be retried in full by the application; PostgreSQL does not retry automatically because the application logic that chose which SQL to run must also be re-executed.