Fix pg_checksums progress report

shinya11.kato@nttdata.com

From: <Shinya11.Kato@nttdata.com>
To: <pgsql-hackers@postgresql.org>
Date: 2021-04-02T05:23:32Z
Lists: pgsql-hackers

Attachments

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

Commits

  1. pg_checksums: Fix progress reporting.