pgsql: pgbench: Support double constants and functions.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: pgbench: Support double constants and functions.
Date: 2016-03-29 00:52:39
Message-ID: E1akhtf-0006c7-52@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

pgbench: Support double constants and functions.

The new functions are pi(), random(), random_exponential(),
random_gaussian(), and sqrt(). I was worried that this would be
slower than before, but, if anything, it actually turns out to be
slightly faster, because we now express the built-in pgbench scripts
using fewer lines; each \setrandom can be merged into a subsequent
\set.

Fabien Coelho

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/86c43f4e22c0771fd0cc6bce2799802c894ee2ec

Modified Files
--------------
doc/src/sgml/ref/pgbench.sgml | 283 +++++++++++++++++---------
src/bin/pgbench/exprparse.y | 43 +++-
src/bin/pgbench/exprscan.l | 5 +
src/bin/pgbench/pgbench.c | 450 ++++++++++++++++++++++++++++++++++--------
src/bin/pgbench/pgbench.h | 35 +++-
5 files changed, 624 insertions(+), 192 deletions(-)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2016-03-29 00:57:24 pgsql: Fix typo in comment.
Previous Message Alvaro Herrera 2016-03-28 23:51:20 pgsql: PostgresNode: initialize $timed_out if passed

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2016-03-29 00:54:00 Re: extend pgbench expressions with functions
Previous Message Michael McConville 2016-03-29 00:47:20 Re: pthread portability