WAL, Vacuum & Recovery
Self-test
Check your understanding
Self-test8 questions
—/8
Why can Postgres return from COMMIT before the data files are written, and still survive a crash?
What does archive_timeout bound, and why was it set to 60 s here?
The 1,000 rows written after the last backup came back in the restore. Where were they?
Why did the incremental backup store 75 MB when only 5% of the rows changed?
Why must a restored copy run with archive_mode=off?
Why did the lab call pg_switch_wal() and wait for a specific segment before restoring?
What does the new timeline after a point-in-time restore protect against?
- Design question
Write a backup policy for a 2 TB database with an RPO of 1 minute and an RTO of 1 hour: what you back up, how often, where, and how you prove it works.