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

BUG #15819: wrong expression in document of pgbench

From
PG Bug reporting form
Date:
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

From
Fabien COELHO
Date:
> 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

From
Fabien COELHO
Date:
> 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
Attachment

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

From
Tom Lane
Date:
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