Skip to content

Commit 7340ace

Browse files
committed
Specify --host in 027_stream_regress.pl's pg_regress invocation.
The invocation of pg_regress in 027_stream_regress.pl didn't specify the host. It ends up working on most systems because of connection defaults. However, on windows it makes the test very slow unless PG_TEST_USE_UNIX_SOCKETS is used. The problem is that windows resolves "localhost" to ::0, 127.0.0.1, the server started only listens on 127.0.0.1. On windows refused TCP connections are internally retried a few times, with back-off between tries, taking at least 2 seconds. Noticed while investigating a complaint about the test's slow speed by Andrew Dunstan. Discussion: https://postgr.es/m/20220127220351.kyp3bdaukfytmoqx@alap3.anarazel.de
1 parent 8ee9408 commit 7340ace

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/test/recovery/t/027_stream_regress.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
system_or_bail($ENV{PG_REGRESS} . " $extra_opts " .
5959
"--dlpath=\"$dlpath\" " .
6060
"--bindir= " .
61+
"--host=" . $node_primary->host . " " .
6162
"--port=" . $node_primary->port . " " .
6263
"--schedule=../regress/parallel_schedule " .
6364
"--max-concurrent-tests=20 " .

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