Re: gaussian distribution pgbench

From: Mitsumasa KONDO <kondo(dot)mitsumasa(at)gmail(dot)com>
To: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>
Cc: Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>, KONDO Mitsumasa <kondo(dot)mitsumasa(at)lab(dot)ntt(dot)co(dot)jp>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: gaussian distribution pgbench
Date: 2014-03-15 10:54:22
Message-ID: CADupcHW5MkQiQLpTOwdSZyALnsAaWKZ228eaX2DONMzybTiQag@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

2014-03-15 19:04 GMT+09:00 Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>:

>
> Nice drawing!
>
>
> * How about setting the variable as a float instead of integer? Would
>>>
>>>> seem more natural to me. At least as an option.
>>>>
>>>
>>> Which variable? The values set by setrandom are mostly used for primary
>>> keys. We really want integers in a range.
>>>
>>
>> I think he said threshold parameter. Threshold parameter is very sensitive
>> parameter, so we need to set double in threshold. I think that you can
>> consent it when you see attached picture.
>
> Oh, sorry.. It is to Heikki. Not to you...

> I'm sure that the threshold must be a double, but I thought it was already
> the case, because of atof, the static variables which are declared double,
> and the threshold function parameters which are declared double as well,
> and the putVariable uses a "%lf" format...
>
I think it's collect. When we get double argument in scanf(), we can use
%lf format.

> Possibly I'm missing something?

Sorry. I think nothing is missing.

regards,
--
Mitsumasa KONDO

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Stark 2014-03-15 11:11:09 Re: jsonb and nested hstore
Previous Message Fabien COELHO 2014-03-15 10:04:35 Re: gaussian distribution pgbench