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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>
Cc: koizumistr(at)minos(dot)ocn(dot)ne(dot)jp, PostgreSQL Bugs <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Subject: Re: BUG #15819: wrong expression in document of pgbench
Date: 2019-05-24 15:16:53
Message-ID: 15858.1558711013@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

Fabien COELHO <coelho(at)cri(dot)ensmp(dot)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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Sean Johnston 2019-05-24 17:19:30 Re: BUG #15781: subselect on foreign table (postgres_fdw) can crash (segfault)
Previous Message Fabien COELHO 2019-05-24 14:33:43 Re: BUG #15819: wrong expression in document of pgbench

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2019-05-24 15:20:52 Re: [HACKERS] Runtime Partition Pruning
Previous Message Tom Lane 2019-05-24 15:10:50 Re: [HACKERS] Small fix: avoid passing null pointers to memcpy()