postgresql/contrib/pgbench
Robert Haas 878fdcb843 pgbench: Add a real expression syntax to \set
Previously, you could do \set variable operand1 operator operand2, but
nothing more complicated.  Now, you can \set variable expression, which
makes it much simpler to do multi-step calculations here.  This also
adds support for the modulo operator (%), with the same semantics as in
C.

Robert Haas and Fabien Coelho, reviewed by Álvaro Herrera and
Stephen Frost
2015-03-02 14:21:41 -05:00
..
.gitignore pgbench: Add a real expression syntax to \set 2015-03-02 14:21:41 -05:00
exprparse.y pgbench: Add a real expression syntax to \set 2015-03-02 14:21:41 -05:00
exprscan.l pgbench: Add a real expression syntax to \set 2015-03-02 14:21:41 -05:00
Makefile pgbench: Add a real expression syntax to \set 2015-03-02 14:21:41 -05:00
pgbench.c pgbench: Add a real expression syntax to \set 2015-03-02 14:21:41 -05:00
pgbench.h pgbench: Add a real expression syntax to \set 2015-03-02 14:21:41 -05:00