mirror of
https://github.com/postgres/postgres.git
synced 2025-11-15 03:41:20 +03:00
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 since8f3ec75de. Update this logic to match what libpq actually does now. This is just cosmetic, but still it's potentially misleading. Back-patch to v13 where8f3ec75decame in. Discussion: https://postgr.es/m/3894060.1646415641@sss.pgh.pa.us
This commit is contained in:
@@ -1115,6 +1115,11 @@ connectOptions2(PGconn *conn)
|
||||
{
|
||||
if (ch->host)
|
||||
free(ch->host);
|
||||
|
||||
/*
|
||||
* This bit selects the default host location. If you change
|
||||
* this, see also pg_regress.
|
||||
*/
|
||||
#ifdef HAVE_UNIX_SOCKETS
|
||||
if (DEFAULT_PGSOCKET_DIR[0])
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user