- Notifications
You must be signed in to change notification settings - Fork515
docs([tokio-]postgres/config): fix examples for unix socket paths#1225
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Conversation
That may be true, but the commonly used location (in e.g. Ubuntu 24.04) for the Postgres socket is /var/lib/{service}. |
leona-ya commentedMar 2, 2025
On a new Ubuntu 24.04 (with the standard repos) on a clean install I get the postgresql socket in
|
Sorry, yeah I misread /var/run as /var/lib. I'd prefer this use
|
The commonly used location for sockets is `/run/{service}`, with`/var/lib/{service}` containing the actual data from the service.
@sfackler i changed the paths to be all |
On my Arch machine psql is in
Should we instead document the fact that depending on the distro or the configuration it could be in different places? |
With systemd expecting all PID etc under seehttps://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch05s13.html |
The commonly used location for sockets is
/run/{service}
, with/var/lib/{service}
containing the actual data from the service.