Improve scripting language in pgbench

Enterprise / PostgreSQL - Teodor Sigaev [sigaev.ru] - 9 January 2018 15:02 EST

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

bc7fa0c15c Improve scripting language in pgbench
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(-)

Upstream: git.postgresql.org


  • Share