From: 德哥 <digoal@126.com>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Fabien COELHO <coelho@cri.ensmp.fr>
Cc: PostgreSQL Bugs List <pgsql-bugs@postgresql.org>
Subject: Re: BUG #13453: PostgreSQL 9.5dev pgbench exponential distribution bug? (when threshold is small)
Date: Fri, 19 Jun 2015 07:43:27 +0800 (CST)
Message-ID: <5ffbc4f0.d51.14e090e452b.Coremail.digoal@126.com> (raw)
In-Reply-To: <20150618153221.GG133018@postgresql.org>
References: <20150618044100.2730.35003@wrigleys.postgresql.org>
<alpine.DEB.2.10.1506181650200.2655@sto>
<20150618153221.GG133018@postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
At 2015-06-18 23:32:21, "Alvaro Herrera" <alvherre@2ndquadrant.com> wrote:
>Fabien COELHO wrote:
>>
>> Hello,
>>
>> >\setrandom id 1 50000 exponential 0.0000001
>> >insert into test values (:id);
>>
>> Yes, a very small coefficient on a truncated exponential is pretty close to
>> a uniform distribution. I think that this is a mathematical fact, not a bug.
>
>It's a fact of life also ... you don't notice exponentially-growing
>stuff until it's way out of hand :-)
Thanks, great, it's my miss-understand. I use threshold=1,10,100,1000,10000 and test again, add plot pictures.
http://blog.163.com/digoal@126/blog/static/163877040201551891133433/
(The closer to 0 the threshold, the flatter (more uniform) the access distribution.)
>
>--
>Álvaro Herrera http://www.2ndQuadrant.com/
>PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: digoal@126.com, alvherre@2ndquadrant.com, coelho@cri.ensmp.fr
Subject: Re: BUG #13453: PostgreSQL 9.5dev pgbench exponential distribution bug? (when threshold is small)
In-Reply-To: <5ffbc4f0.d51.14e090e452b.Coremail.digoal@126.com>
References: <20150618044100.2730.35003@wrigleys.postgresql.org> <alpine.DEB.2.10.1506181650200.2655@sto> <20150618153221.GG133018@postgresql.org> <5ffbc4f0.d51.14e090e452b.Coremail.digoal@126.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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