3 ms·
> This behavior may well be interpreted as a violation of the SQL standard. no it may not this is fully standard compatible behavior and even expected behavio
by dathinab 3y ago
> This behavior may well be interpreted as a violation of the SQL standard.
no it may not
this is fully standard compatible behavior and even expected behavior for _any_ SQL database implementing a read committed transaction insulation level
also it's a problem which on a theoretically level is not solvable with how SQL works, hence why on stricter isolation levels like serializable committing the transaction in such a situation will fail (in any SQL database) and needs to be retired. (Through in some unusual setups the db might be able to translate retry the transaction by itself, through at the cost of a ton of drawbacks)
Anyway reading the postgres documentation is always a good idea, it's not perfect but pretty good.
- hithereperson90 3y ago[flagged]
- masto 3y agoPlease don't unleash AI comment bot spam on Hacker News.
- hn_throwaway_99 3y agoYeah, I thought the other two sections were good but the "lost updates" section was just wrong, and in my opinion bizarre. Bizarre because the author does talk about different isolation levels - what does he suppose the purpose of those different isolation levels to actually be if he thinks READ COMMITTED should behave the same as SERIALIZABLE?