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
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/f67b113ac62777d18cd20d3c4d05be964301b936
Modified Files
--------------
doc/src/sgml/ref/pgbench.sgml | 15 +
doc/src/sgml/ref/psql-ref.sgml | 2 +-
src/bin/pgbench/pgbench.c | 359 +++++++++++++++++++----
src/bin/pgbench/t/001_pgbench_with_server.pl | 43 ++-
src/bin/pgbench/t/002_pgbench_no_server.pl | 52 ++++
src/bin/psql/Makefile | 2 +-
src/bin/psql/command.h | 2 +-
src/bin/psql/prompt.h | 2 +-
src/bin/psql/psqlscanslash.l | 2 +-
src/fe_utils/Makefile | 2 +-
src/{bin/psql => fe_utils}/conditional.c | 31 +-
src/{bin/psql => include/fe_utils}/conditional.h | 23 +-
12 files changed, 460 insertions(+), 75 deletions(-)