Re: Fix pg_checksums progress report

Поиск
Список
Период
Сортировка
От Fujii Masao
Тема Re: Fix pg_checksums progress report
Дата
Msg-id 9d45441f-99a3-e551-f31c-fad85dfc0293@oss.nttdata.com
обсуждение исходный текст
Ответ на Re: Fix pg_checksums progress report  (Michael Paquier <michael@paquier.xyz>)
Ответы RE: Fix pg_checksums progress report  (<Shinya11.Kato@nttdata.com>)
Re: Fix pg_checksums progress report  (Michael Paquier <michael@paquier.xyz>)
Список pgsql-hackers

On 2021/04/02 16:47, Michael Paquier wrote:
> On Fri, Apr 02, 2021 at 07:30:32AM +0000, Shinya11.Kato@nttdata.com wrote:
>> I added a comment to the patch, and attached the new patch.

Thanks for updating the patch!

+        /*
+         * The current_size is calculated before checking if header is a
+         * new page, because total_size includes the size of new pages.
+         */
+        current_size += r;

I'd like to comment more. What about the following?

---------------------------
Since the file size is counted as total_size for progress status information, the sizes of all pages including new ones
inthe file should be counted as current_size. Otherwise the progress reporting calculated using those counters may not
reach100%.
 
---------------------------


> Hmm.  This looks to come from 280e5f14 that introduced the progress
> reports so this would need a backpatch down to 12.

Yes.


> I have not looked
> in details and have not looked at the patch yet, though.  Fujii-san,
> are you planning to take care of that?

Yes, I will. Thanks for the consideration!

Regards,

-- 
Fujii Masao
Advanced Computing Technology Center
Research and Development Headquarters
NTT DATA CORPORATION



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: badly calculated width of emoji in psql
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Add Nullif case for eval_const_expressions_mutator