mirror of
https://github.com/postgres/postgres.git
synced 2025-08-09 17:03:00 +03: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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user