]> granicus.if.org Git - postgresql/commit
Improve scripting language in pgbench
authorTeodor Sigaev <teodor@sigaev.ru>
Tue, 9 Jan 2018 15:02:04 +0000 (18:02 +0300)
committerTeodor Sigaev <teodor@sigaev.ru>
Tue, 9 Jan 2018 15:02:04 +0000 (18:02 +0300)
commitbc7fa0c15c590ddf4872e426abd76c2634f22aca
tree44e3d74fe62b12228f2c611a53878bd60a11fd21
parent63008b19ee67270231694500832b031868d34428
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
doc/src/sgml/ref/pgbench.sgml
src/bin/pgbench/exprparse.y
src/bin/pgbench/exprscan.l
src/bin/pgbench/pgbench.c
src/bin/pgbench/pgbench.h
src/bin/pgbench/t/001_pgbench_with_server.pl