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

From Dean Rasheed
Subject pgsql: psql: Add option to use expanded mode to all list commands.
Date
Msg-id E1tXjoE-001XZv-Io@gemulon.postgresql.org
Whole thread Raw
List 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(-)


pgsql-committers by date:

Previous
From: Fujii Masao
Date:
Subject: pgsql: ecpg: Restore detection of unsupported COPY FROM STDIN.
Next
From: Heikki Linnakangas
Date:
Subject: pgsql: Fix catcache invalidation of a list entry that's being built