All Questions
Postgresql hard

What is the technical justification for setting `checkpoint_completion_target` to a high value (like `0.9`) in a write-heavy PostgreSQL production cluster?

  1. A To ensure the internal WAL buffers are cleared as quickly as possible to prevent session timeouts.
  2. B To spread the disk I/O load over a longer period, preventing massive 'thundering herd' write spikes.
  3. C To allow the background vacuum workers more time to identify dead tuples before the logs are rotated.
  4. D To minimize the total number of WAL segments kept on disk, reducing the overall storage footprint.

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

Get the app

Related questions