Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Open
transcaffeine wants to merge1 commit intosfackler:master
base:master
Choose a base branch
Loading
fromtranscaffeine:master

Conversation

transcaffeine
Copy link

The commonly used location for sockets is/run/{service}, with/var/lib/{service} containing the actual data from the service.

@sfackler
Copy link
Owner

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
Copy link

On a new Ubuntu 24.04 (with the standard repos) on a clean install I get the postgresql socket in/run/postgresql (equivalent to/var/run/postgresql):

root@testubuntu01:~# ls /var/run/postgresql/ -altotal 8drwxrwsr-x  2 postgres postgres  100 Mar  2 20:21 .drwxr-xr-x 31 root     root     1080 Mar  2 20:21 ..srwxrwxrwx  1 postgres postgres    0 Mar  2 20:21 .s.PGSQL.5432-rw-------  1 postgres postgres   70 Mar  2 20:21 .s.PGSQL.5432.lock-rw-r--r--  1 postgres postgres    6 Mar  2 20:21 16-main.pidroot@testubuntu01:~# uname -aLinux testubuntu01 6.8.0-52-generic #53-Ubuntu SMP PREEMPT_DYNAMIC Sat Jan 11 00:06:25 UTC 2025 x86_64 x86_64 x86_64 GNU/Linuxroot@testubuntu01:~# cat /etc/os-releasePRETTY_NAME="Ubuntu 24.04.1 LTS"NAME="Ubuntu"VERSION_ID="24.04"VERSION="24.04.1 LTS (Noble Numbat)"VERSION_CODENAME=nobleID=ubuntuID_LIKE=debian

@sfackler
Copy link
Owner

Sorry, yeah I misread /var/run as /var/lib. I'd prefer this use/var/run/postgresql instead of just/run to match with how psql is built:

root@80cc00b8042c:/# psqlpsql: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory        Is the server running locally and accepting connections on that socket?```
transcaffeine reacted with thumbs up emoji

The commonly used location for sockets is `/run/{service}`, with`/var/lib/{service}` containing the actual data from the service.
@transcaffeine
Copy link
Author

@sfackler i changed the paths to be all/var/run/postgresql :)

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@transcaffeine@sfackler@leona-ya

[8]ページ先頭

©2009-2025 Movatter.jp