* 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. */
| 42 | * This is ensured by including the postmaster port & pid in the path. |
| 43 | */ |
| 44 | static inline void |
| 45 | ic_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. |
no outgoing calls
no test coverage detected