sqlx icon indicating copy to clipboard operation
sqlx copied to clipboard

Windows path for pgpass is wrong

Open anarchodin opened this issue 3 months ago • 0 comments

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

anarchodin avatar Nov 10 '25 16:11 anarchodin