summaryrefslogtreecommitdiff
path: root/src/bin/psql/help.c
diff options
context:
space:
mode:
authorPeter Eisentraut2021-04-06 14:58:10 +0000
committerPeter Eisentraut2021-04-06 15:10:24 +0000
commit3a5130672296ed4e682403a77a9a3ad3d21cef75 (patch)
treed82b51d5fa34c92fe4f09f6262f6968dbf84c7fb /src/bin/psql/help.c
parent518442c7f334f3b05ea28b7ef50f1b551cfcc23e (diff)
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 <[email protected]> Reviewed-by: "Iwata, Aya" <[email protected]> Reviewed-by: Daniel Verite <[email protected]> Reviewed-by: Peter Eisentraut <[email protected]> Reviewed-by: Kyotaro Horiguchi <[email protected]> Reviewed-by: vignesh C <[email protected]> Discussion: https://www.postgresql.org/message-id/flat/alpine.DEB.2.21.1904132231510.8961@lancre
Diffstat (limited to 'src/bin/psql/help.c')
-rw-r--r--src/bin/psql/help.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bin/psql/help.c b/src/bin/psql/help.c
index 99a59470c5d..ac9a89a889b 100644
--- a/src/bin/psql/help.c
+++ b/src/bin/psql/help.c
@@ -410,6 +410,8 @@ helpVariables(unsigned short int pager)
fprintf(output, _(" SERVER_VERSION_NAME\n"
" SERVER_VERSION_NUM\n"
" server's version (in short string or numeric format)\n"));
+ fprintf(output, _(" SHOW_ALL_RESULTS\n"
+ " show all results of a combined query (\\;) instead of only the last\n"));
fprintf(output, _(" SHOW_CONTEXT\n"
" controls display of message context fields [never, errors, always]\n"));
fprintf(output, _(" SINGLELINE\n"