diff options
| author | Andres Freund | 2022-01-27 22:38:44 +0000 |
|---|---|---|
| committer | Andres Freund | 2022-01-27 22:49:57 +0000 |
| commit | 7340aceed72b522bfcbba70520b4c2435c35d2ba (patch) | |
| tree | 8eff0982c2b6ffda7291d2adfc4872b4afe1231c /src | |
| parent | 8ee940843dfed6623b0a0d0b15080aa469116ce0 (diff) | |
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/[email protected]
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/recovery/t/027_stream_regress.pl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/recovery/t/027_stream_regress.pl b/src/test/recovery/t/027_stream_regress.pl index 0596980b1a6..782f24b429f 100644 --- a/src/test/recovery/t/027_stream_regress.pl +++ b/src/test/recovery/t/027_stream_regress.pl @@ -58,6 +58,7 @@ my $extra_opts = $ENV{EXTRA_REGRESS_OPTS} || ""; system_or_bail($ENV{PG_REGRESS} . " $extra_opts " . "--dlpath=\"$dlpath\" " . "--bindir= " . + "--host=" . $node_primary->host . " " . "--port=" . $node_primary->port . " " . "--schedule=../regress/parallel_schedule " . "--max-concurrent-tests=20 " . |
