]> granicus.if.org Git - postgresql/commit
Add \if support to pgbench
authorTeodor Sigaev <teodor@sigaev.ru>
Thu, 22 Mar 2018 14:42:03 +0000 (17:42 +0300)
committerTeodor Sigaev <teodor@sigaev.ru>
Thu, 22 Mar 2018 14:42:03 +0000 (17:42 +0300)
commitf67b113ac62777d18cd20d3c4d05be964301b936
treebd65429918d10cf374292620ae726adba50f7617
parentb5db1d93d2a6e2d3186f8798a5d06e07b7536a1d
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
12 files changed:
doc/src/sgml/ref/pgbench.sgml
doc/src/sgml/ref/psql-ref.sgml
src/bin/pgbench/pgbench.c
src/bin/pgbench/t/001_pgbench_with_server.pl
src/bin/pgbench/t/002_pgbench_no_server.pl
src/bin/psql/Makefile
src/bin/psql/command.h
src/bin/psql/prompt.h
src/bin/psql/psqlscanslash.l
src/fe_utils/Makefile
src/fe_utils/conditional.c [moved from src/bin/psql/conditional.c with 83% similarity]
src/include/fe_utils/conditional.h [moved from src/bin/psql/conditional.h with 76% similarity]