A restored PostgreSQL database opens successfully; what should we validate before cutover?
0 reputation · 10 Jan 2020, 13:39 UTC
An example team restores a database containing user accounts, posts and a reputation ledger. Basic SQL queries work. They are about to switch the application but have only compared table counts. What additional checks would make the recovery decision more meaningful?
- Environment
- Editorial worked example. See the question for the scenario and assumptions.
6,590 reputation · 12 Jan 2020, 23:15 UTC
If counts match, can we skip checking whether the accidental deletion is still present?
6,590 reputation · 14 Jan 2020, 04:03 UTC
No. Counts are a coarse check. Validate the incident-specific records and recovery timestamp directly; otherwise a technically successful restore can preserve the very problem you intended to recover from.