pgsql: Add \if support to pgbench

Поиск
Список
Период
Сортировка
От Teodor Sigaev
Тема pgsql: Add \if support to pgbench
Дата
Msg-id E1ez1QA-0002pw-OC@gemulon.postgresql.org
обсуждение исходный текст
Ответы Re: pgsql: Add \if support to pgbench  (Fabien COELHO <coelho@cri.ensmp.fr>)
Re: pgsql: Add \if support to pgbench  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: pgsql: Add \if support to pgbench  (Andres Freund <andres@anarazel.de>)
Список pgsql-committers
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(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: pgsql: Improve ANALYZE's strategy for finding MCVs.
Следующее
От: Fabien COELHO
Дата:
Сообщение: Re: pgsql: Add \if support to pgbench