Skip to content

Windows path for pgpass is wrong #4097

@anarchodin

Description

@anarchodin

I have found these related issues/pull requests

None of the existing issues related to pgpass mention this.

Description

The path searched by sqlx for the password file does not match what libpq searches. This causes sqlx-based programs not to find an existing, working pgpass file on Windows.

Reproduction steps

Create a pgpass file on Windows. Use it with a libpq-based program. Try an sqlx-based program and see it fail.

SQLx version

not relevant

Enabled SQLx features

not relevant

Database server and version

postgresql, any

Operating system

Windows

Rust version

not relevant

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions