MCPcopy Create free account
hub / github.com/apache/cloudberry / ic_proxy_build_server_sock_path

Function ic_proxy_build_server_sock_path

contrib/interconnect/proxy/ic_proxy.h:44–49  ·  view source on GitHub ↗

* Build the domain socket path. * * Every proxy on the same host must use a different path, this is important to * let proxies from different segments or even different clusters to coexist. * * This is ensured by including the postmaster port & pid in the path. */

Source from the content-addressed store, hash-verified

42 * This is ensured by including the postmaster port & pid in the path.
43 */
44static inline void
45ic_proxy_build_server_sock_path(char *buf, size_t bufsize)
46{
47 snprintf(buf, bufsize, "/tmp/.s.PGSQL.ic_proxy.%d.%d",
48 PostPortNumber, PostmasterPid);
49}
50
51/*
52 * Free a list.

Calls

no outgoing calls

Tested by

no test coverage detected