From: Dean Rasheed <dean.a.rasheed@gmail.com>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: psql: Add option to use expanded mode to all list commands.
Date: Tue, 14 Jan 2025 16:30:30 +0000
Message-ID: <E1tXjoE-001XZv-Io@gemulon.postgresql.org> (raw)
psql: Add option to use expanded mode to all list commands.
This allows "x" to be appended to any psql list-like meta-command,
forcing its output to be displayed in expanded mode. This improves
readability in cases where the output is very wide. For example,
"\dfx+" (or equivalently "\df+x") will produce a list of functions,
with additional details, in expanded mode.
This works with all \d* meta-commands, plus \l, \z, and \lo_list, with
the one exception that the expanded mode option "x" cannot be appended
to "\d" by itself, since "\dx" already means something else.
Dean Rasheed, reviewed by Greg Sabino Mullane.
Discussion: https://postgr.es/m/CAEZATCVXJk3KsmCncf7PAVbxdDAUDm3QzDgGT7mBYySWikuOYw@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/00f4c2959d631c7851da21a512885d1deab28649
Modified Files
--------------
doc/src/sgml/ref/psql-ref.sgml | 275 +++++++++++++++++++++++++++----------
src/bin/psql/command.c | 68 ++++++++-
src/bin/psql/describe.c | 4 +-
src/bin/psql/help.c | 106 +++++++-------
src/test/regress/expected/psql.out | 90 ++++++++++++
src/test/regress/sql/psql.sql | 6 +
6 files changed, 418 insertions(+), 131 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 using the --to and --cc options:
reply via email
To: pgsql-committers@postgresql.org
Cc: dean.a.rasheed@gmail.com, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: psql: Add option to use expanded mode to all list commands.
In-Reply-To: <E1tXjoE-001XZv-Io@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