Allow using Unix-domain sockets on Windows in tests

Peter Eisentraut <peter@eisentraut.org>

Commit: 1d53432ff940b789c2431ba476a2a6e2db3edf84
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2020-03-30T15:35:29Z
Releases: 13.0
Allow using Unix-domain sockets on Windows in tests

The test suites currently don't use Unix-domain sockets on Windows.
This optionally allows enabling that by setting the environment
variable PG_TEST_USE_UNIX_SOCKETS.

This should currently be considered experimental.  In particular,
pg_regress.c contains some comments that the cleanup code for
Unix-domain sockets doesn't work correctly under Windows, which hasn't
been an problem until now.  But it's good enough for locally
supervised testing of the functionality.

Reviewed-by: Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
Discussion: https://www.postgresql.org/message-id/flat/54bde68c-d134-4eb8-5bd3-8af33b72a010@2ndquadrant.com

Files

Discussion