mirror of
https://github.com/postgres/postgres.git
synced 2025-07-15 19:21:59 +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:
@ -126,7 +126,7 @@ is($ret, 2, 'server crash: psql exit code');
|
||||
like($out, qr/before/, 'server crash: output before crash');
|
||||
ok($out !~ qr/AFTER/, 'server crash: no output after crash');
|
||||
is($err, 'psql:<stdin>:2: FATAL: terminating connection due to administrator command
|
||||
server closed the connection unexpectedly
|
||||
psql:<stdin>:2: server closed the connection unexpectedly
|
||||
This probably means the server terminated abnormally
|
||||
before or while processing the request.
|
||||
psql:<stdin>:2: fatal: connection to server was lost',
|
||||
|
Reference in New Issue
Block a user