Hello! This issue was reported by Yilin Zhang in another backup related thread[1]
When basebackup finds exactly one corrupted page in a file, the backup fails as expected with a per-page warning and then an error. However, it doesn't update the statistics, because that update is currently inside the per-file summary for 2 or more checksum failures. This issue seems to exists since the introduction of the feature (6b9e875f728). The attached patch moves the statistics report into its own block. [1] : https://www.postgresql.org/message-id/34b127c.6e5d.1a00f5540f9.Coremail.jiezhilove%40126.com
0001-Report-single-page-checksum-failures-in-pg_stat_data.patch
Description: Binary data
