Add \if support to pgbench
Teodor Sigaev <teodor@sigaev.ru>
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
| Path | Change | +/− |
|---|---|---|
| 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
- pgbench - add \if support 29 messages · 2017-11-25 → 2018-03-22