Skip to content

Commit 3132a9b

Browse files
committed
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.
1 parent 7408c5d commit 3132a9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/pg_upgrade/server.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ start_postmaster(ClusterInfo *cluster, bool throw_error)
190190
#ifdef HAVE_UNIX_SOCKETS
191191
/* prevent TCP/IP connections, restrict socket access */
192192
strcat(socket_string,
193-
" -c listen_addresses='' -c unix_socket_permissions=0700");
193+
" -c listen_addresses=\"\" -c unix_socket_permissions=0700");
194194

195195
/* Have a sockdir? Tell the postmaster. */
196196
if (cluster->sockdir)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy