From: Stephen Frost <sfrost@snowman.net>
To: pgsql-committers@postgresql.org
Subject: pgsql: psql: Add \gx command
Date: Tue, 07 Mar 2017 14:32:13 +0000
Message-ID: <E1clG9t-0005G0-Ao@gemulon.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
psql: Add \gx command
It can often be useful to use expanded mode output (\x) for just a
single query. Introduce a \gx which acts exactly like \g except that it
will force expanded output mode for that one \gx call. This is simpler
than having to use \x as a toggle and also means that the user doesn't
have to worry about the current state of the expanded variable, or
resetting it later, to ensure a given query is always returned in
expanded mode.
Primairly Christoph's patch, though I did tweak the documentation and help
text a bit, and re-indented the tab completion section.
Author: Christoph Berg
Reviewed By: Daniel Verite
Discussion: https://postgr.es/m/20170127132737.6skslelaf4txs6iw%40msg.credativ.de
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/b2678efd43f17db7dfa04e0ca076ea01275cd9bc
Modified Files
--------------
doc/src/sgml/ref/psql-ref.sgml | 12 ++++++++++++
src/bin/psql/command.c | 9 +++++++--
src/bin/psql/common.c | 7 +++++++
src/bin/psql/help.c | 1 +
src/bin/psql/settings.h | 1 +
src/bin/psql/tab-complete.c | 11 ++++++-----
src/test/regress/expected/psql.out | 23 +++++++++++++++++++++++
src/test/regress/sql/psql.sql | 7 +++++++
8 files changed, 64 insertions(+), 7 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
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: sfrost@snowman.net
Subject: Re: pgsql: psql: Add \gx command
In-Reply-To: <E1clG9t-0005G0-Ao@gemulon.postgresql.org>
References: <E1clG9t-0005G0-Ao@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