From: Andrew Dunstan <andrew@dunslane.net>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add xheader_width pset option to psql
Date: Mon, 25 Jul 2022 18:25:14 +0000
Message-ID: <E1oG2lV-001Dwc-6e@gemulon.postgresql.org> (raw)
Add xheader_width pset option to psql
The setting controls tha maximum length of the header line in expanded
format output. Possible settings are full, column, page, or an integer.
the default is full, the current behaviour, and in this case the header
line is the length of the widest line of output. column causes the
header to be truncated to the width of the first column, page causes it
to be truncated to the width of the terminal page, and an integer causes
it to be truncated to that value. If the full value is less than the
page or integer value no truncation occurs. If given without an argument
this option prints its current setting.
Platon Pronko, somewhat modified by me.
Discussion: https://postgr.es/m/f03d38a3-db96-a56e-d1bc-dbbc80bbde4d@gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/a45388d6e0984abb02074f0300cd9c5cbda13848
Modified Files
--------------
doc/src/sgml/ref/psql-ref.sgml | 33 ++++++++++++++++
src/bin/psql/command.c | 54 ++++++++++++++++++++++++++
src/bin/psql/tab-complete.c | 5 ++-
src/fe_utils/print.c | 77 +++++++++++++++++++++++++++++---------
src/include/fe_utils/print.h | 11 ++++++
src/test/regress/expected/psql.out | 1 +
src/tools/pgindent/typedefs.list | 1 +
7 files changed, 164 insertions(+), 18 deletions(-)
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: andrew@dunslane.net
Subject: Re: pgsql: Add xheader_width pset option to psql
In-Reply-To: <E1oG2lV-001Dwc-6e@gemulon.postgresql.org>
References: <E1oG2lV-001Dwc-6e@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