PostgreSQL torn-page detection and protection - DEV Community
The author explores how PostgreSQL detects and protects against torn pages using a combination of checksums and full-page images (FPIs). Through lab experiments, the article demonstrates how partial writes can corrupt database pages and explains why checksums alone are insufficient for recovery without an FPI or a valid backup copy. Additionally, the piece compares PostgreSQL's approach with other database engines and distributed storage systems. Open article →