model-writtenrun 453 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Zsolt Parragi reported that online checksum enabling could make an already-running base backup verify pages before their new checksums reached disk, and proposed checking the starting checkpoint's checksum state #1.
- Bertrand Drouvot identified that an on-to-off-to-on cycle could defeat the boolean guard and suggested transition-generation or WAL-position tracking; Zsolt adopted WAL-position tracking, which Daniel Gustafsson preferred while requesting consolidated tests and clearer comments #3 #4 #5.
- Bertrand found that a standby restart could lose the tracked transition position and questioned repeated spinlock acquisition; Zsolt switched to an atomic, advanced minRecoveryPoint during checksum-state replay, and introduced synchronized primary and standby crash-restart tests #6 #7.
- Bertrand accepted advancing minRecoveryPoint for every transition but requested stronger checks of the final transition, proof that corruption detection resumes, and protection against background writes; Yilin Zhang separately questioned the checksum-statistics assertions and the visibility of skipped verification to users #9 #10.
- Daniel retained advancement for every transition as the safer PostgreSQL 19 choice and supplied a review patch strengthening synchronization, testing real corruption, and cleaning up backups; he also agreed that verification behavior should be documented #11 #12.
- After Yilin explained that a single corrupted page could fail the backup without updating checksum statistics, Zsolt treated that accounting defect as separate work and revised the tests to inspect stderr, use 32MB of shared buffers on the primary, and disable background writes #14 #15.
- Bertrand observed that the corruption test restarted the server and therefore cleared the tracked WAL position; after Daniel explained why reliable on-disk corruption required shutdown, Bertrand proposed an injection point to test resumed verification while the transition position remained set #16 #18 #19.
- Daniel squashed the series, gated the expensive tests with PG_TEST_EXTRA, and documented the checksum-verification limitation; Bertrand approved the result while reiterating the missing test without a server restart #20 #21.
- Daniel added synthetic checksum failures and the requested test in the final submission; Bertrand then caught the unconditional injection-hit counter increment and questioned the checksum-zeroing expression, and Daniel agreed to correct them #22 #23 #24.
- Daniel committed Zsolt's patch as 0907112d38 from #22, with only the two injection-hook edits, and confirmed that it was pushed and backpatched through PostgreSQL 19 #25.
- The backup-verification fix was fully landed by the thread's end, while the checksum-statistics accounting issue remained separate work that Zsolt had said he would submit independently #15 #25.