pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Specify --host in 027_stream_regress.pl's pg_regress invocation.
Date: Thu, 27 Jan 2022 22:50:52 +0000
Message-ID: <E1nDDbQ-00052F-2I@gemulon.postgresql.org> (raw)

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/7340aceed72b522bfcbba70520b4c2435c35d2ba

Modified Files
--------------
src/test/recovery/t/027_stream_regress.pl | 1 +
1 file changed, 1 insertion(+)



Message-ID: <E1nDDbQ-00052F-2I@gemulon.postgresql.org>
Permalink:  ../E1nDDbQ-00052F-2I@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1nDDbQ-00052F-2I@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: andres@anarazel.de
  Subject: Re: pgsql: Specify --host in 027_stream_regress.pl's pg_regress invocation.
  In-Reply-To: <E1nDDbQ-00052F-2I@gemulon.postgresql.org>
  References: <E1nDDbQ-00052F-2I@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox