Open shangjin92 opened 1 year ago
The unix_socket_directories parameter is hard-coded in the code. Why doesn't it support custom configuration? In some cases, such as using postgres_fdw, the /var/run/posgresql/.s.PGSQL.5432 socket file will be relied upon.
log.Infow("starting database") name := filepath.Join(p.pgBinPath, "postgres") args = append([]string{"-D", p.dataDir, "-c", "unix_socket_directories=" + common.PgUnixSocketDirectories}, args...) cmd := exec.Command(name, args...) log.Debugw("execing cmd", "cmd", cmd)
The unix_socket_directories parameter is hard-coded in the code. Why doesn't it support custom configuration? In some cases, such as using postgres_fdw, the /var/run/posgresql/.s.PGSQL.5432 socket file will be relied upon.