mirror of
https://github.com/postgres/postgres.git
synced 2025-04-22 23:02:54 +03:00
pg_upgrade: use "" rather than '', for Windows
If we ever support unix sockets on Windows, we should use "" rather than '' for zero-length strings on the command-line, so use that.
This commit is contained in:
parent
7408c5d29b
commit
3132a9b7ab
@ -190,7 +190,7 @@ start_postmaster(ClusterInfo *cluster, bool throw_error)
|
|||||||
#ifdef HAVE_UNIX_SOCKETS
|
#ifdef HAVE_UNIX_SOCKETS
|
||||||
/* prevent TCP/IP connections, restrict socket access */
|
/* prevent TCP/IP connections, restrict socket access */
|
||||||
strcat(socket_string,
|
strcat(socket_string,
|
||||||
" -c listen_addresses='' -c unix_socket_permissions=0700");
|
" -c listen_addresses=\"\" -c unix_socket_permissions=0700");
|
||||||
|
|
||||||
/* Have a sockdir? Tell the postmaster. */
|
/* Have a sockdir? Tell the postmaster. */
|
||||||
if (cluster->sockdir)
|
if (cluster->sockdir)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user