pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #15819: wrong expression in document of pgbench
3+ messages / 3 participants
[nested] [flat]

* BUG #15819: wrong expression in document of pgbench
@ 2019-05-24 14:01  PG Bug reporting form <noreply@postgresql.org>
  0 siblings, 1 reply; 3+ messages in thread

From: PG Bug reporting form @ 2019-05-24 14:01 UTC (permalink / raw)
  To: pgsql-bugs@lists.postgresql.org; +Cc: koizumistr@minos.ocn.ne.jp

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



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: BUG #15819: wrong expression in document of pgbench
@ 2019-05-24 14:33  Fabien COELHO <coelho@cri.ensmp.fr>
  parent: PG Bug reporting form <noreply@postgresql.org>
  0 siblings, 1 reply; 3+ messages in thread

From: Fabien COELHO @ 2019-05-24 14:33 UTC (permalink / raw)
  To: koizumistr@minos.ocn.ne.jp, PostgreSQL Bugs <pgsql-bugs@lists.postgresql.org>; PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>


> 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:

  [text/x-diff] pgbench-doc-minor-fix-1.patch (726B, ../../alpine.DEB.2.21.1905241631310.29379@lancre/2-pgbench-doc-minor-fix-1.patch)
  download | inline diff:
diff --git a/doc/src/sgml/ref/pgbench.sgml b/doc/src/sgml/ref/pgbench.sgml
index ef22a484e7..e3b73a4cf5 100644
--- a/doc/src/sgml/ref/pgbench.sgml
+++ b/doc/src/sgml/ref/pgbench.sgml
@@ -1561,7 +1561,7 @@ f(x) = PHI(2.0 * parameter * (x - mu) / (max - min + 1)) /
       For example, <literal>random_zipfian(1, ..., 2.5)</literal> produces
       the value <literal>1</literal> about <literal>(2/1)**2.5 =
       5.66</literal> times more frequently than <literal>2</literal>, which
-      itself is produced <literal>(3/2)*2.5 = 2.76</literal> times more
+      itself is produced <literal>(3/2)**2.5 = 2.76</literal> times more
       frequently than <literal>3</literal>, and so on.
      </para>
      <para>


^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: BUG #15819: wrong expression in document of pgbench
@ 2019-05-24 15:16  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Fabien COELHO <coelho@cri.ensmp.fr>
  0 siblings, 0 replies; 3+ messages in thread

From: Tom Lane @ 2019-05-24 15:16 UTC (permalink / raw)
  To: Fabien COELHO <coelho@cri.ensmp.fr>; +Cc: koizumistr@minos.ocn.ne.jp, PostgreSQL Bugs <pgsql-bugs@lists.postgresql.org>

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





^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2019-05-24 15:16 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-05-24 14:01 BUG #15819: wrong expression in document of pgbench PG Bug reporting form <noreply@postgresql.org>
2019-05-24 14:33 ` Fabien COELHO <coelho@cri.ensmp.fr>
2019-05-24 15:16   ` Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox