Обсуждение: BUG #15819: wrong expression in document of pgbench

Поиск
Список
Период
Сортировка

BUG #15819: wrong expression in document of pgbench

От
PG Bug reporting form
Дата:
The following bug has been logged on the website:

Bug reference:      15819
Logged by:          KOIZUMI Satoru
Email address:      koizumistr@minos.ocn.ne.jp
PostgreSQL version: 11.3
Operating system:   (Any)
Description:

In example of random_zipfian,  the explanation is "which itself(2) is
produced (3/2)*2.5 = 2.76 times more frequently than 3".
"(3/2)*2.5 = 2.76" is wrong. The correct expression is "(3/2)**2.5 = 2.76".


Re: BUG #15819: wrong expression in document of pgbench

От
Fabien COELHO
Дата:
> In example of random_zipfian,  the explanation is "which itself(2) is
> produced (3/2)*2.5 = 2.76 times more frequently than 3".
> "(3/2)*2.5 = 2.76" is wrong. The correct expression is "(3/2)**2.5 = 2.76".

Indeed. Attached patch to fix this typo.

-- 
Fabien

Re: BUG #15819: wrong expression in document of pgbench

От
Fabien COELHO
Дата:
> In example of random_zipfian,  the explanation is "which itself(2) is
> produced (3/2)*2.5 = 2.76 times more frequently than 3".
> "(3/2)*2.5 = 2.76" is wrong. The correct expression is "(3/2)**2.5 = 2.76".

Indeed. Attached patch to fix this typo.

-- 
Fabien
Вложения

Re: BUG #15819: wrong expression in document of pgbench

От
Tom Lane
Дата:
Fabien COELHO <coelho@cri.ensmp.fr> writes:
>> In example of random_zipfian,  the explanation is "which itself(2) is
>> produced (3/2)*2.5 = 2.76 times more frequently than 3".
>> "(3/2)*2.5 = 2.76" is wrong. The correct expression is "(3/2)**2.5 = 2.76".

> Indeed. Attached patch to fix this typo.

Indeed.  Pushed.

            regards, tom lane