From: | 德哥 <digoal(at)126(dot)com> |
---|---|
To: | "Alvaro Herrera" <alvherre(at)2ndquadrant(dot)com> |
Cc: | "Fabien COELHO" <coelho(at)cri(dot)ensmp(dot)fr>, "PostgreSQL Bugs List" <pgsql-bugs(at)postgresql(dot)org> |
Subject: | Re: BUG #13453: PostgreSQL 9.5dev pgbench exponential distribution bug? (when threshold is small) |
Date: | 2015-06-18 23:43:27 |
Message-ID: | 5ffbc4f0.d51.14e090e452b.Coremail.digoal@126.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
At 2015-06-18 23:32:21, "Alvaro Herrera" <alvherre(at)2ndquadrant(dot)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(at)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
From | Date | Subject | |
---|---|---|---|
Next Message | Sameer Kumar | 2015-06-19 01:31:29 | Re: pg_xlog on a hot_stanby slave |
Previous Message | Alvaro Herrera | 2015-06-18 21:17:22 | Re: BUG #13440: unaccent does not remove all diacritics |