mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +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. Author: Fabien COELHO <coelho@cri.ensmp.fr> Reviewed-by: "Iwata, Aya" <iwata.aya@jp.fujitsu.com> Reviewed-by: Daniel Verite <daniel@manitou-mail.org> Reviewed-by: Peter Eisentraut <peter.eisentraut@2ndquadrant.com> Reviewed-by: Kyotaro Horiguchi <horikyota.ntt@gmail.com> Reviewed-by: vignesh C <vignesh21@gmail.com> Discussion: https://www.postgresql.org/message-id/flat/alpine.DEB.2.21.1904132231510.8961@lancre
This commit is contained in:
@ -4122,7 +4122,7 @@ psql_completion(const char *text, int start, int end)
|
||||
matches = complete_from_variables(text, "", "", false);
|
||||
else if (TailMatchesCS("\\set", MatchAny))
|
||||
{
|
||||
if (TailMatchesCS("AUTOCOMMIT|ON_ERROR_STOP|QUIET|"
|
||||
if (TailMatchesCS("AUTOCOMMIT|ON_ERROR_STOP|QUIET|SHOW_ALL_RESULTS|"
|
||||
"SINGLELINE|SINGLESTEP"))
|
||||
COMPLETE_WITH_CS("on", "off");
|
||||
else if (TailMatchesCS("COMP_KEYWORD_CASE"))
|
||||
|
Reference in New Issue
Block a user