All Questions
Postgresql hard

PostgreSQL sets `full_page_writes` to `on` by default. What specific type of data corruption does this mechanism protect against during a crash?

  1. A Silent bit rot caused by electromagnetic interference on high-density magnetic platter drives.
  2. B Torn Pages occurring when the OS crashes while writing an 8KB page in smaller atomic blocks.
  3. C Transaction ID overlap caused by a massive spike in concurrent write requests to the WAL.
  4. D Memory leaks in the shared buffer pool that lead to inconsistent snapshots for long-running reads.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions