Prove a PostgreSQL restore with row fingerprints and indexes
Doha I. · Published · Lire en français

A completed backup does not prove recovery. In our disposable PostgreSQL lab, we restored a custom-format pg_dump into a second database, compared a count and ordered row fingerprint across 200,000 rows, and verified that the customer index existed. This is a local tool experiment, not a hosted LordBase recovery guarantee.
A file can exist while recovery remains untested. This exercise verifies a concrete restore on synthetic data. It was executed on 2 December 2026 with PostgreSQL 17.12 in a disposable local cluster; it does not measure the LordBase backup service or establish an RTO/RPO commitment.
Procedure
The shared lab script creates a source database with 200,000 deterministic orders and a customer index. No source writes occur during the backup.
It creates a custom-format archive with pg_dump, creates a separate empty target database, and restores using pg_restore --exit-on-error --no-owner --no-privileges. It then independently checks the target rows and index.
Results from this run
| Check | Observed result |
|---|---|
| Source rows | 200,000 |
| Restored rows | 200,000 |
| Ordered row fingerprint | Same on source and target |
| Customer index | Present on target |
| Archive size | 5,265,567 bytes |
| Dump duration | 1.4551 seconds |
| Restore duration | 0.3560 seconds |
The timing covers this small local dataset and machine. It excludes cloud transfer, queueing, service provisioning and application recovery. Do not extrapolate production restore time from it.
The fingerprint uses all rows in a deterministic order. It detects changed fixture contents in this exercise; MD5 here is a comparison aid, not an authenticity or security signature. Row equality alone also does not prove application permissions, triggers, external dependencies or every possible object have recovered. The script checks the index separately.
Reproduce and extend
Install Python 3 and PostgreSQL command-line tools, inspect the script and run:
python3 postgresql-recovery-lab.py --postgres-bin /path/to/postgresql/bin --output results.json
The script starts and removes its own temporary cluster and accepts no existing server URL. Compare your output with the recorded JSON. The same run includes the index experiment.
For your application, add representative reads and writes, permissions, constraints and recovery timing under realistic data volumes. On LordBase, follow the managed backup workflow: select a disposable target explicitly, wait for the restore job to complete, then validate your application. This local lab does not replace that hosted recovery test.
