Re: gaussian distribution pgbench - Mailing list pgsql-hackers

From Fabien COELHO
Subject Re: gaussian distribution pgbench
Date
Msg-id alpine.DEB.2.10.1403151057160.13791@sto
Whole thread Raw
In response to Re: gaussian distribution pgbench  (Mitsumasa KONDO <kondo.mitsumasa@gmail.com>)
Responses Re: gaussian distribution pgbench  (Mitsumasa KONDO <kondo.mitsumasa@gmail.com>)
List pgsql-hackers
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.

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

Possibly I'm missing something?

-- 
Fabien.



pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: Patch: show relation and tuple infos of a lock to acquire
Next
From: Mitsumasa KONDO
Date:
Subject: Re: gaussian distribution pgbench