summaryrefslogtreecommitdiff
path: root/src/bin/psql/help.c
diff options
context:
space:
mode:
authorPeter Eisentraut2022-04-04 12:57:17 +0000
committerPeter Eisentraut2022-04-04 18:00:33 +0000
commit7844c9918a43b494adde3575891d217a37062378 (patch)
tree0f1d5a45abcaef3982545f68a53444bb5e059065 /src/bin/psql/help.c
parentcbf4177f2ca0b9bbfdb78a6ab51e3876e9ff6eac (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. 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 <[email protected]> Reviewed-by: Peter Eisentraut <[email protected]> Reviewed-by: "Iwata, Aya" <[email protected]> (earlier version) Reviewed-by: Daniel Verite <[email protected]> (earlier version) Reviewed-by: Kyotaro Horiguchi <[email protected]> (earlier version) Reviewed-by: vignesh C <[email protected]> (earlier version) 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 56afa6817e6..b3971bce64d 100644
--- a/src/bin/psql/help.c
+++ b/src/bin/psql/help.c
@@ -413,6 +413,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"