pgsql: psql: Add option to use expanded mode to all list commands.

From: Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)com>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: psql: Add option to use expanded mode to all list commands.
Date: 2025-01-14 16:30:30
Message-ID: E1tXjoE-001XZv-Io@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2025-01-14 16:57:25 pgsql: Fix catcache invalidation of a list entry that's being built
Previous Message Fujii Masao 2025-01-14 16:29:16 pgsql: ecpg: Restore detection of unsupported COPY FROM STDIN.