Fix recovery test hang

The test would hang if a sufficient ~/.psqlrc was present.  Fix by using
psql -X.
This commit is contained in:
Peter Eisentraut 2017-03-25 00:10:57 -04:00
parent 87dee41f3e
commit cd07f73d32

View File

@ -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;