pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: psql: Show all query results by default
Date: Mon, 04 Apr 2022 18:08:02 +0000
Message-ID: <E1nbR7S-000JdN-1k@gemulon.postgresql.org> (raw)

psql: Show all query results by default

Previously, psql printed only the last result if a command string
returned multiple result sets.  Now it prints all of them.  The
previous behavior can be obtained by setting the psql variable
SHOW_ALL_RESULTS to off.

This is a significantly enhanced version of
3a5130672296ed4e682403a77a9a3ad3d21cef75 (that was later reverted).
There is also much more test coverage for various psql features now.

Author: Fabien COELHO <coelho@cri.ensmp.fr>
Reviewed-by: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Reviewed-by: "Iwata, Aya" <iwata.aya@jp.fujitsu.com> (earlier version)
Reviewed-by: Daniel Verite <daniel@manitou-mail.org> (earlier version)
Reviewed-by: Kyotaro Horiguchi <horikyota.ntt@gmail.com> (earlier version)
Reviewed-by: vignesh C <vignesh21@gmail.com> (earlier version)
Discussion: https://www.postgresql.org/message-id/flat/alpine.DEB.2.21.1904132231510.8961@lancre

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/7844c9918a43b494adde3575891d217a37062378

Modified Files
--------------
.../expected/pg_stat_statements.out                |  25 +
doc/src/sgml/ref/psql-ref.sgml                     |  29 +-
src/bin/psql/common.c                              | 524 ++++++++++++---------
src/bin/psql/help.c                                |   2 +
src/bin/psql/settings.h                            |   1 +
src/bin/psql/startup.c                             |  10 +
src/bin/psql/t/001_basic.pl                        |   2 +-
src/bin/psql/tab-complete.c                        |   2 +-
src/test/regress/expected/copyselect.out           |  14 +-
src/test/regress/expected/psql.out                 | 242 ++++++++++
src/test/regress/expected/transactions.out         |  58 ++-
src/test/regress/sql/copyselect.sql                |   4 +-
src/test/regress/sql/psql.sql                      | 141 ++++++
src/test/regress/sql/transactions.sql              |   2 +-
14 files changed, 801 insertions(+), 255 deletions(-)



view thread (2+ messages)

Message-ID: <E1nbR7S-000JdN-1k@gemulon.postgresql.org>
Permalink:  ../E1nbR7S-000JdN-1k@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1nbR7S-000JdN-1k@gemulon.postgresql.org

 · 

reply

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: peter@eisentraut.org
  Subject: Re: pgsql: psql: Show all query results by default
  In-Reply-To: <E1nbR7S-000JdN-1k@gemulon.postgresql.org>
  References: <E1nbR7S-000JdN-1k@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