Questions tagged [lost-update]

4 questions
14
votes
2 answers

'Lost update' vs 'Write skew'

Can somebody explain me whats exactly the difference between a 'lost update' and a 'write skew' in database transaction theory? Can somebody give me an example?
MjeOsX
  • 375
  • 4
  • 12
6
votes
1 answer

Isolation level: Difference between dirty write and lost update

I'm reading A Critique of ANSI SQL Isolation Levels and get confused by the two definitions: Dirty write w1[x]...w2[x]...((c1 or a1) and (c2 or a2) in any order) Lost update r1[x]...w2[x]...w1[x]...c1 Doesn't the history definition of lost…
Patrick
  • 555
  • 1
  • 6
  • 25
4
votes
4 answers

How to use transactions in MySQL to avoid "lost updates"?

A lost update occurs when two different transactions are trying to update the same column on the same row within a database at the same time. Typically, one transaction updates a particular column in a particular row, while another that began…
user
  • 2,345
  • 3
  • 12
  • 14
1
vote
1 answer

How can postgresql have a "lost update" in Read Committed isolation level?

On page 52 of PostgreSQL 14 Internals, Egor Rogov indicates that "lost updates" can occur with the "Read Committed" isolation level. There is also a sentence that reads: But in some cases, there is a risk of losing changes at the Read Committed…
Dwayne Towell
  • 8,154
  • 4
  • 36
  • 49