pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Teodor Sigaev <teodor@sigaev.ru>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add \if support to pgbench
Date: Thu, 22 Mar 2018 14:42:26 +0000
Message-ID: <E1ez1QA-0002pw-OC@gemulon.postgresql.org> (raw)

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(-)



view thread (7+ messages)  latest in thread

Message-ID: <E1ez1QA-0002pw-OC@gemulon.postgresql.org>
Permalink:  ../E1ez1QA-0002pw-OC@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ez1QA-0002pw-OC@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: teodor@sigaev.ru
  Subject: Re: pgsql: Add \if support to pgbench
  In-Reply-To: <E1ez1QA-0002pw-OC@gemulon.postgresql.org>
  References: <E1ez1QA-0002pw-OC@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox