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

From Heikki Linnakangas
Subject Re: add modulo (%) operator to pgbench
Date
Msg-id 54230FEA.9080800@vmware.com
Whole thread Raw
In response to Re: add modulo (%) operator to pgbench  (Fabien COELHO <coelho@cri.ensmp.fr>)
List pgsql-hackers
On 09/24/2014 09:34 PM, Fabien COELHO wrote:
>
>> The idea of a modulo operator was not rejected, we'd just like to have the
>> infrastructure in place first.
>
> Sigh.
>
> How to transform a trivial 10 lines patch into a probably 500+ lines
> project involving flex & bison & some non trivial data structures, and
> which may get rejected on any ground...

That's how we get good features. It's very common for someone to need X, 
and to post a patch that does X. Other people pop up that need Y and Z 
which are similar, and you end up implementing those too. It's more work 
for you in the short term, but it benefits everyone in the long run.

- Heikki




pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: json_object_agg return on no rows
Next
From: Andres Freund
Date:
Subject: Re: Spinlocks and compiler/memory barriers