add modulo (%) operator to pgbench

From: Fabien <coelho(at)cri(dot)ensmp(dot)fr>
To: PostgreSQL Developers <pgsql-hackers(at)postgresql(dot)org>
Subject: add modulo (%) operator to pgbench
Date: 2014-08-01 18:46:03
Message-ID: alpine.DEB.2.10.1408012027460.22310@sto
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


This patch is pretty trivial.

Add modulo operator to pgbench.

This is useful to compute a permutation for tests with non uniform
accesses (exponential or gaussian), so as to avoid trivial correlations
between neighbour keys.

--
Fabien.

Attachment Content-Type Size
pgbench-modulo-1.patch text/x-diff 1.3 KB
pgbench-modulo-test.txt text/plain 162 bytes
pgbench-modulo-test-init.sql application/x-sql 186 bytes
pgbench-modulo-test-run.sql application/x-sql 102 bytes
pgbench-modulo-test-check.sql application/x-sql 39 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Kevin Grittner 2014-08-01 19:17:30 Re: numeric and float comparison oddities
Previous Message Lars Ewald (web.de) 2014-08-01 18:00:10 Re: Fwd: Re: Compile fails on AIX 6.1