Get the latest tech news

PSA: SQLite WAL checksums fail silently and may lose data


SQLite WAL has checksums, but on corruption it drops all the data and does not raise error

Then, during checkpoint operations, the database pages are written from the WAL to the main DB file. I really don’t like that SQLite doesn’t throw any error on detection of corruption Since it automatically checkpoints every time, the data is lost too However, Pekka Enberg offered a different perspective that SQLite runs in embedded environments where there’s no server, and maybe core developers decided it may be better to limp along than crash.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of data

data

Photo of PSA

PSA

Photo of wal

wal

Related news:

News photo

Eau no! Dior tells customers their data was swiped in cyber snafu

News photo

European healthcare giant AMEOS reveals data breach - millions of users warned to be on their guard, here's what we know

News photo

Copilot Vision on Windows 11 sends data to Microsoft servers