Add \if support to pgbench

Teodor Sigaev <teodor@sigaev.ru>

Commit: f67b113ac62777d18cd20d3c4d05be964301b936
Author: Teodor Sigaev <teodor@sigaev.ru>
Date: 2018-03-22T14:42:03Z
Releases: 11.0
Add \if support to pgbench

Patch adds \if to pgbench as it done for psql. Implementation shares condition
stack code with psql, so, this code is moved to fe_utils directory.

Author: Fabien COELHO with minor editorization by me
Review by: Vik Fearing, Fedor Sigaev
Discussion: https://www.postgresql.org/message-id/flat/alpine.DEB.2.20.1711252200190.28523@lancre

Files

PathChange+/−
doc/src/sgml/ref/pgbench.sgml modified +15 −0
doc/src/sgml/ref/psql-ref.sgml modified +1 −1
src/bin/pgbench/pgbench.c modified +298 −61
src/bin/pgbench/t/001_pgbench_with_server.pl modified +42 −1
src/bin/pgbench/t/002_pgbench_no_server.pl modified +52 −0
src/bin/psql/command.h modified +1 −1
src/bin/psql/Makefile modified +1 −1
src/bin/psql/prompt.h modified +1 −1
src/bin/psql/psqlscanslash.l modified +1 −1
src/fe_utils/conditional.c (from src/bin/psql/conditional.c) renamed +27 −4
src/fe_utils/Makefile modified +1 −1
src/include/fe_utils/conditional.h (from src/bin/psql/conditional.h) renamed +20 −3

Documentation touched

Discussion