psql: Show all query results by default

Enterprise / PostgreSQL - Peter Eisentraut [eisentraut.org] - 6 April 2021 15:10 UTC

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

3a51306722 psql: Show all query results by default
.../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(-)

Upstream: git.postgresql.org


  • Share