Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hUBwR-0002Wg-Kc for pgsql-bugs@arkaria.postgresql.org; Fri, 24 May 2019 15:17:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hUBwQ-000608-5B for pgsql-bugs@arkaria.postgresql.org; Fri, 24 May 2019 15:17:06 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hUBwP-000600-Qc for pgsql-bugs@lists.postgresql.org; Fri, 24 May 2019 15:17:05 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hUBwN-0000VF-Hs for pgsql-bugs@lists.postgresql.org; Fri, 24 May 2019 15:17:04 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x4OFGrLE015859; Fri, 24 May 2019 11:16:53 -0400 From: Tom Lane To: Fabien COELHO cc: koizumistr@minos.ocn.ne.jp, PostgreSQL Bugs Subject: Re: BUG #15819: wrong expression in document of pgbench In-reply-to: References: <15819-e6191bef1f7334c0@postgresql.org> Comments: In-reply-to Fabien COELHO message dated "Fri, 24 May 2019 16:33:43 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <15857.1558711013.1@sss.pgh.pa.us> Date: Fri, 24 May 2019 11:16:53 -0400 Message-ID: <15858.1558711013@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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