Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why is the unix_socket_directories parameter not supported for configuration? #916

Open
shangjin92 opened this issue Oct 16, 2023 · 0 comments

Comments

@shangjin92
Copy link

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant