From: Peter Eisentraut Date: Sat, 25 Mar 2017 04:10:57 +0000 (-0400) Subject: Fix recovery test hang X-Git-Tag: REL_10_BETA1~517 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cd07f73d3225c092f4cd0e7bf1cab11ac9f8c1f0;p=postgresql Fix recovery test hang The test would hang if a sufficient ~/.psqlrc was present. Fix by using psql -X. --- diff --git a/src/test/recovery/t/011_crash_recovery.pl b/src/test/recovery/t/011_crash_recovery.pl index e5d1a0f645..3c3718e6aa 100644 --- a/src/test/recovery/t/011_crash_recovery.pl +++ b/src/test/recovery/t/011_crash_recovery.pl @@ -18,7 +18,7 @@ my ($stdin, $stdout, $stderr) = ('', '', ''); # an xact to be in-progress when we crash and we need to know # its xid. my $tx = IPC::Run::start( - ['psql', '-qAt', '-v', 'ON_ERROR_STOP=1', '-f', '-', '-d', $node->connstr('postgres')], + ['psql', '-X', '-qAt', '-v', 'ON_ERROR_STOP=1', '-f', '-', '-d', $node->connstr('postgres')], '<', \$stdin, '>', \$stdout, '2>', \$stderr); $stdin .= q[ BEGIN;