Skip to content

Commit cd07f73

Browse files
committed
Fix recovery test hang
The test would hang if a sufficient ~/.psqlrc was present. Fix by using psql -X.
1 parent 87dee41 commit cd07f73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/recovery/t/011_crash_recovery.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# an xact to be in-progress when we crash and we need to know
1919
# its xid.
2020
my $tx = IPC::Run::start(
21-
['psql', '-qAt', '-v', 'ON_ERROR_STOP=1', '-f', '-', '-d', $node->connstr('postgres')],
21+
['psql', '-X', '-qAt', '-v', 'ON_ERROR_STOP=1', '-f', '-', '-d', $node->connstr('postgres')],
2222
'<', \$stdin, '>', \$stdout, '2>', \$stderr);
2323
$stdin .= q[
2424
BEGIN;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy