Commit cd07f73d authored by Peter Eisentraut's avatar Peter Eisentraut

Fix recovery test hang

The test would hang if a sufficient ~/.psqlrc was present.  Fix by using
psql -X.
parent 87dee41f
...@@ -18,7 +18,7 @@ my ($stdin, $stdout, $stderr) = ('', '', ''); ...@@ -18,7 +18,7 @@ my ($stdin, $stdout, $stderr) = ('', '', '');
# an xact to be in-progress when we crash and we need to know # an xact to be in-progress when we crash and we need to know
# its xid. # its xid.
my $tx = IPC::Run::start( 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, '>', \$stdout, '2>', \$stderr);
$stdin .= q[ $stdin .= q[
BEGIN; BEGIN;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment