- Published on
Investigation · Part 12 of 20 · What survives a crash
When fsync Fails: What PostgreSQL Learned in 2018
My program got EIO from fdatasync, called it again and got ok. In 2018 PostgreSQL learned why that second ok can be a lie on Linux. I tell the documented story, then inject fsync errors into my store with an LD_PRELOAD shim, and I say what the shim cannot show.