|
|
|
|
|
by gwen-shapira
918 days ago
|
|
It is mentioned in the doc, but can be easy to mis-understand: "If a pattern of reads and writes among concurrent serializable transactions would create a situation which could not have occurred for any serial (one-at-a-time) execution of those transactions, one of them will be rolled back with a serialization_failure error." Note that it says nothing about the non-serializable transactions. https://www.postgresql.org/docs/current/sql-set-transaction.... |
|
I guess it is the same for all MVCC databases. They don't want to acquire a read lock just in case another transaction is in Serializable