BUG #15819: wrong expression in document of pgbench
BUG #15819: wrong expression in document of pgbench
От:
PG Bug reporting form <noreply@postgresql.org>
Дата:
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
> 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 <coelho@cri.ensmp.fr>
Дата:
> 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 <tgl@sss.pgh.pa.us>
Дата:
Fabien COELHO 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