Re: Range checks of pg_test_fsync --secs-per-test and pg_test_timing --duration

Поиск
Список
Период
Сортировка
Искать
От
Michael Paquier
Тема
Re: Range checks of pg_test_fsync --secs-per-test and pg_test_timing --duration
Дата
Msg-id
20200911070823.GI2743@paquier.xyz
Ответ на
Список
Дерево обсуждения
Range checks of pg_test_fsync --secs-per-test and pg_test_timing --duration Michael Paquier <michael@paquier.xyz>
Re: Range checks of pg_test_fsync --secs-per-test and pg_test_timing --duration Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: Range checks of pg_test_fsync --secs-per-test and pg_test_timing --duration Michael Paquier <michael@paquier.xyz>
Re: Range checks of pg_test_fsync --secs-per-test and pg_test_timing --duration Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: Range checks of pg_test_fsync --secs-per-test and pg_test_timing --duration Michael Paquier <michael@paquier.xyz>
Re: Range checks of pg_test_fsync --secs-per-test and pg_test_timing --duration Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: Range checks of pg_test_fsync --secs-per-test and pg_test_timing --duration Michael Paquier <michael@paquier.xyz>
Re: Range checks of pg_test_fsync --secs-per-test and pg_test_timing --duration Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: Range checks of pg_test_fsync --secs-per-test and pg_test_timing --duration Michael Paquier <michael@paquier.xyz>
Re: Range checks of pg_test_fsync --secs-per-test and pg_test_timing --duration Michael Paquier <michael@paquier.xyz>
Re: Range checks of pg_test_fsync --secs-per-test and pg_test_timing --duration Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: Range checks of pg_test_fsync --secs-per-test and pg_test_timing --duration Michael Paquier <michael@paquier.xyz>
Re: Range checks of pg_test_fsync --secs-per-test and pg_test_timing --duration Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: Range checks of pg_test_fsync --secs-per-test and pg_test_timing --duration Michael Paquier <michael@paquier.xyz>
Re: Range checks of pg_test_fsync --secs-per-test and pg_test_timing --duration Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: Range checks of pg_test_fsync --secs-per-test and pg_test_timing --duration Michael Paquier <michael@paquier.xyz>
On Thu, Sep 10, 2020 at 03:59:20PM +0200, Peter Eisentraut wrote:
> The first patch you proposed checks for errno == ERANGE, but pgbench code
> doesn't do that.  So one of them is not correct.

Sorry for the confusion, I misunderstood what you were referring to.
Yes, the first patch is wrong to add the check on errno.  FWIW, I
thought about your point to use strtol() but that does not seem worth
the complication for those tools.  It is not like anybody is going to
use high values for these, and using uint64 to make sure that the
boundaries are checked just add more checks for bounds.  There is
one example in pg_test_timing when compiling the total time.
--
Michael
В списке pgsql-hackers по дате отправления
От: Kyotaro Horiguchi
Дата:
Сообщение: Re: Improvements in Copy From
От: bttanakahbk
Дата:
FAQ