postgres.git / summary / log / commit / refs
commit cd07f73d3225c092f4cd0e7bf1cab11ac9f8c1f0
Author: Peter Eisentraut <peter_e@gmx.net>
Date: Sat Mar 25 04:10:57 2017 +0000
Fix recovery test hang
The test would hang if a sufficient ~/.psqlrc was present. Fix by using
psql -X.
src/test/recovery/t/011_crash_recovery.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/test/recovery/t/011_crash_recovery.pl b/src/test/recovery/t/011_crash_recovery.pl
index e5d1a0f6456..3c3718e6aa4 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;
[parent: 87dee41f3ed6]