From: | Peter Eisentraut <peter(at)eisentraut(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: psql: Show all query results by default |
Date: | 2021-04-06 15:19:09 |
Message-ID: | E1lTnTx-0007V9-Uc@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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.
Author: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>
Reviewed-by: "Iwata, Aya" <iwata(dot)aya(at)jp(dot)fujitsu(dot)com>
Reviewed-by: Daniel Verite <daniel(at)manitou-mail(dot)org>
Reviewed-by: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>
Reviewed-by: Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com>
Reviewed-by: vignesh C <vignesh21(at)gmail(dot)com>
Discussion: https://www.postgresql.org/message-id/flat/alpine(dot)DEB(dot)2(dot)21(dot)1904132231510(dot)8961(at)lancre
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/3a5130672296ed4e682403a77a9a3ad3d21cef75
Modified Files
--------------
.../expected/pg_stat_statements.out | 25 +
doc/src/sgml/ref/psql-ref.sgml | 29 +-
src/bin/psql/common.c | 624 ++++++++++++---------
src/bin/psql/help.c | 2 +
src/bin/psql/settings.h | 1 +
src/bin/psql/startup.c | 10 +
src/bin/psql/tab-complete.c | 2 +-
src/test/regress/expected/copyselect.out | 14 +-
src/test/regress/expected/psql.out | 93 +++
src/test/regress/expected/transactions.out | 58 +-
src/test/regress/sql/copyselect.sql | 4 +-
src/test/regress/sql/psql.sql | 38 ++
src/test/regress/sql/transactions.sql | 2 +-
13 files changed, 603 insertions(+), 299 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2021-04-06 15:24:07 | pgsql: Fix missing #include in nodeResultCache.h. |
Previous Message | Tomas Vondra | 2021-04-06 14:59:38 | Re: pgsql: Extended statistics on expressions |