Thanks to visit codestin.com
Credit goes to github.com

Skip to content

abstract namespace unix sockets fail in hostname lookup #1240

@jayvdb

Description

@jayvdb

According to https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-PARAMKEYWORDS

If the host name starts with @, it is taken as a Unix-domain socket in the abstract namespace (currently supported on Linux and Windows).

However tokio-posgres connect prevents host=@... ; the error is

called Result::unwrap() on an Err value: Custom { kind: Uncategorized, error: "failed to lookup address information: Name or service not known" }

And the backtrace points to this line https://github.com/sfackler/rust-postgres/blob/02463b1/tokio-postgres/src/connect.rs#L98

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions