BUG #15819: wrong expression in document of pgbench

Started by PG Bug reporting formalmost 7 years ago3 messageshackersbugs
Jump to latest
#1PG Bug reporting form
noreply@postgresql.org
hackersbugs

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".

#2Fabien COELHO
coelho@cri.ensmp.fr
In reply to: PG Bug reporting form (#1)
hackersbugs
Re: BUG #15819: wrong expression in document of pgbench

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

Attachments:

pgbench-doc-minor-fix-1.patchtext/x-diff; name=pgbench-doc-minor-fix-1.patchDownload+1-1
#3Tom Lane
tgl@sss.pgh.pa.us
In reply to: Fabien COELHO (#2)
hackersbugs
Re: BUG #15819: wrong expression in document of pgbench

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