提交 3132a9b7 编写于 作者: B Bruce Momjian

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.
上级 7408c5d2
......@@ -190,7 +190,7 @@ start_postmaster(ClusterInfo *cluster, bool throw_error)
#ifdef HAVE_UNIX_SOCKETS
/* prevent TCP/IP connections, restrict socket access */
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. */
if (cluster->sockdir)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册