mirror of
https://github.com/postgres/postgres.git
synced 2025-06-03 00:02:26 -04:00
Fix recovery test hang
The test would hang if a sufficient ~/.psqlrc was present. Fix by using psql -X.
This commit is contained in:
parent
87dee41f3e
commit
cd07f73d32
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user