From: | <Shinya11(dot)Kato(at)nttdata(dot)com> |
---|---|
To: | <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Fix pg_checksums progress report |
Date: | 2021-04-02 05:23:32 |
Message-ID: | TYAPR01MB289656B1ACA0A5E7CAD07BE3C47A9@TYAPR01MB2896.jpnprd01.prod.outlook.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
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
Attachment | Content-Type | Size |
---|---|---|
fix_pg_checksums_progress_report.patch | application/octet-stream | 573 bytes |
From | Date | Subject | |
---|---|---|---|
Next Message | tsunakawa.takay@fujitsu.com | 2021-04-02 05:25:40 | RE: [bug fix] ALTER TABLE SET LOGGED/UNLOGGED on a partitioned table does nothing silently |
Previous Message | tsunakawa.takay@fujitsu.com | 2021-04-02 05:18:40 | RE: Add client connection check during the execution of the query |