mirror of
https://github.com/postgres/postgres.git
synced 2025-07-07 00:36:50 +03:00
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
3a51306722
(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
This commit is contained in:
@ -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"
|
||||
|
Reference in New Issue
Block a user