Re: port conflicts when running tests concurrently on windows.

Andres Freund <andres@anarazel.de>

From: Andres Freund <andres@anarazel.de>
To: pgsql-hackers@postgresql.org
Date: 2021-12-09T00:36:14Z
Lists: pgsql-hackers
Hi,

On 2021-12-08 14:45:50 -0800, Andres Freund wrote:
> Is it perhaps time to to use unix sockets on windows by default
> (i.e. PG_TEST_USE_UNIX_SOCKETS), at least when on a new enough windows?

On its own PG_TEST_USE_UNIX_SOCKETS doesn't work at all on windows - it fails
trying to use /tmp/ as a socket directory. Using PG_REGRESS_SOCK_DIR fixes
that for PG_REGRESS. But the tap tests don't look at that :(.

Greetings,

Andres Freund



Commits

  1. Make PG_TEST_USE_UNIX_SOCKETS work for tap tests on windows.

  2. Allow using Unix-domain sockets on Windows in tests

  3. Enable Unix-domain sockets support on Windows