I have read Deeply understand Isolation levels and Read phenomena in MySQL & PostgreSQL and especially the part "Serialization anomaly in Postgres". I think I've understood the problem described there, but I have a hard time to judge when it could happen in my application.
Is it only possible with aggregate functions like SUM/COUNT to get a serialization anomaly in Postgres? If not, what else do I have to watch out for?
serializable
isolation level.serializable
is pretty costly. I want to avoid it, if it's not necessary. Hence I try to figure out if it is necessary with my application / my types of queries.read committed
but not substantially. The negative impact depends mostly on how many transactions are aborted due to a serialization error.