Skip to content

Documentation small error about the location of postgres unix socket #690

@nguiard

Description

@nguiard

In this doc page: https://docs.rs/postgres/0.18.1/postgres/config/struct.Config.html
The examples mentioning a unix socket connection use the /var/lib/postgresql as the location where a postgres unix socket would be. However, it seems to me that this location is actually very unlikely.

Apparently, the default location of the socket, if building PG from source, is /tmp. But many distros change this to /var/run/postgresql instead (https://www.postgresql.org/message-id/[email protected]). So it seems that the most likely location a new user of this crate would need to input, if he wants to use the unix socket, would be /var/run/postgresql. I suggest changing this in the doc page.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions