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

From Robert Haas
Subject Re: add modulo (%) operator to pgbench
Date
Msg-id CA+TgmobTCTyHmLKTUyP1D0+eoBDuoTTEcV3MoG4siha+H5XcFQ@mail.gmail.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
Re: add modulo (%) operator to pgbench
Re: add modulo (%) operator to pgbench
Re: add modulo (%) operator to pgbench
List pgsql-hackers
On Wed, Sep 24, 2014 at 2:34 PM, Fabien COELHO <coelho@cri.ensmp.fr> wrote:
> 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...
>
> Maybe I'll set that as a student project.

I think you're making a mountain out of a molehill.  I implemented
this today in about three hours.  The patch is attached.  It needs
more testing, documentation, and possibly some makefile adjustments,
but it seems to basically work.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

Attachment

pgsql-hackers by date:

Previous
From: Craig Ringer
Date:
Subject: Re: delta relations in AFTER triggers
Next
From: Robert Haas
Date:
Subject: Re: identify_locking_dependencies is broken for schema-only dumps