Hi,
I found a problem with the pg_checksums.c.
The total_size is calculated by scanning the directory.
The current_size is calculated by scanning the files, but the current_size does not include the size of NewPages.
This may cause pg_checksums progress report to not be 100%.
I have attached a patch that fixes this.
Regards,
Shinya Kato