pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Teodor Sigaev <teodor@sigaev.ru>
To: pgsql-committers@postgresql.org
Subject: pgsql: Improve scripting language in pgbench
Date: Tue, 09 Jan 2018 15:02:51 +0000
Message-ID: <E1eYvQR-0002LN-R9@gemulon.postgresql.org> (raw)

Improve scripting language in pgbench

Added:
 - variable now might contain integer, double, boolean and null values
 - functions ln, exp
 - logical AND/OR/NOT
 - bitwise AND/OR/NOT/XOR
 - bit right/left shift
 - comparison operators
 - IS [NOT] (NULL|TRUE|FALSE)
 - conditional choice (in form of when/case/then)

New operations and functions allow to implement more complicated test scenario.

Author: Fabien Coelho with minor editorization by me
Reviewed-By: Pavel Stehule, Jeevan Ladhe, me
Discussion: https://www.postgresql.org/message-id/flat/alpine.DEB.2.10.1604030742390.31618@sto

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/bc7fa0c15c590ddf4872e426abd76c2634f22aca

Modified Files
--------------
doc/src/sgml/ref/pgbench.sgml                | 223 +++++++++++-
src/bin/pgbench/exprparse.y                  | 195 ++++++++++-
src/bin/pgbench/exprscan.l                   |  55 ++-
src/bin/pgbench/pgbench.c                    | 484 +++++++++++++++++++++++----
src/bin/pgbench/pgbench.h                    |  24 +-
src/bin/pgbench/t/001_pgbench_with_server.pl | 171 ++++++++--
6 files changed, 1026 insertions(+), 126 deletions(-)



view thread (5+ messages)  latest in thread

Message-ID: <E1eYvQR-0002LN-R9@gemulon.postgresql.org>
Permalink:  ../E1eYvQR-0002LN-R9@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1eYvQR-0002LN-R9@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: teodor@sigaev.ru
  Subject: Re: pgsql: Improve scripting language in pgbench
  In-Reply-To: <E1eYvQR-0002LN-R9@gemulon.postgresql.org>
  References: <E1eYvQR-0002LN-R9@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox