Validate page level checksums in base backups
Magnus Hagander <magnus@hagander.net>
Validate page level checksums in base backups When base backups are run over the replication protocol (for example using pg_basebackup), verify the checksums of all data blocks if checksums are enabled. If checksum failures are encountered, log them as warnings but don't abort the backup. This becomes the default behaviour in pg_basebackup (provided checksums are enabled on the server), so add a switch (-k) to disable the checks if necessary. Author: Michael Banck Reviewed-By: Magnus Hagander, David Steele Discussion: https://postgr.es/m/20180228180856.GE13784@nighthawk.caipicrew.dd-dns.de
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/protocol.sgml | modified | +12 −1 |
| doc/src/sgml/ref/pg_basebackup.sgml | modified | +16 −0 |
| src/backend/replication/basebackup.c | modified | +226 −1 |
| src/backend/replication/repl_gram.y | modified | +7 −1 |
| src/backend/replication/repl_scanner.l | modified | +1 −0 |
| src/bin/pg_basebackup/pg_basebackup.c | modified | +30 −8 |
| src/bin/pg_basebackup/t/010_pg_basebackup.pl | modified | +60 −2 |
Documentation touched
Discussion
- [PATCH] Verify Checksums during Basebackups 30 messages · 2018-02-28 → 2018-04-03