Fix pg_regress to print the correct postmaster address on Windows.
authorTom Lane
Fri, 4 Mar 2022 18:23:58 +0000 (13:23 -0500)
committerTom Lane
Fri, 4 Mar 2022 18:23:58 +0000 (13:23 -0500)
commita008c03dd722f3a9ea44b13ca2cc6066fd90ddc1
treee592fb28beaf2d399a2468f65ec9d7f3079b432e
parent5c9d17e94c5cc0d24c1f0dbfe030000238d65afb
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
src/interfaces/libpq/fe-connect.c
src/test/regress/pg_regress.c