Content-Length: 261172 | pFad | http://github.com/postgrespro/postgres/commit/cd07f73d3225c092f4cd0e7bf1cab11ac9f8c1f0

98 Fix recovery test hang · postgrespro/postgres@cd07f73 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/cd07f73d3225c092f4cd0e7bf1cab11ac9f8c1f0

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy