Fix pg_regress to print the correct postmaster address on Windows.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 59392746cb3fd3c23b5f7bfa9568a71705ca30d1
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2022-03-04T18:23:58Z
Releases: 13.7
Fix pg_regress to print the correct postmaster address on Windows.

pg_regress reported "Unix socket" as the default location whenever
HAVE_UNIX_SOCKETS is defined.  However, that's not been accurate
on Windows since 8f3ec75de.  Update this logic to match what libpq
actually does now.

This is just cosmetic, but still it's potentially misleading.
Back-patch to v13 where 8f3ec75de came in.

Discussion: https://postgr.es/m/3894060.1646415641@sss.pgh.pa.us

Files

PathChange+/−
src/interfaces/libpq/fe-connect.c modified +5 −0
src/test/regress/pg_regress.c modified +8 −2

Discussion