Re: add modulo (%) operator to pgbench - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: add modulo (%) operator to pgbench
Date
Msg-id 5421CBD0.1070103@vmware.com
Whole thread Raw
In response to Re: add modulo (%) operator to pgbench  (Fabien COELHO <coelho@cri.ensmp.fr>)
Responses Re: add modulo (%) operator to pgbench
List pgsql-hackers
On 09/23/2014 09:15 PM, Fabien COELHO wrote:
>> So I'm inclined to reject rather than put in something that may cause
>> surprises down the road.  The usefulness doesn't seem great enough to
>> take that risk.

Marked as "Returned with feedback".

> If you reject it, you can also remove the gaussian and exponential random
> distribution which is near useless without a mean to add a minimal
> pseudo-random stage, for which "(x * something) % size" is a reasonable
> approximation, hence the modulo submission.

I'm confused. The gaussian and exponential patch was already committed. 
Are you saying that it's not actually useful, and should be reverted? 
That doesn't make sense to me, gaussian and exponential distributed 
values seems quite useful to me in test scripts.

I don't understand what that pseudo-random stage you're talking about 
is. Can you elaborate?

- Heikki




pgsql-hackers by date:

Previous
From: Greg Stark
Date:
Subject: Re: proposal: rounding up time value less than its unit.
Next
From: Heikki Linnakangas
Date:
Subject: Re: delta relations in AFTER triggers