Don't attempt to verify checksums on new pages

Teach both base backups and pg_verify_checksums that if a page is new,
it does not have a checksum yet, so it shouldn't be verified.

Noted by Tomas Vondra, review by David Steele.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/33cedf1474a356fe510d4ad32c040c968ef27307

Modified Files
--------------
src/backend/replication/basebackup.c              | 4 +++-
src/bin/pg_verify_checksums/pg_verify_checksums.c | 4 ++++
2 files changed, 7 insertions(+), 1 deletion(-)

Reply via email to