sqlx icon indicating copy to clipboard operation
sqlx copied to clipboard

Defer PostgreSQL passfile lookup

Open V02460 opened this issue 5 months ago • 0 comments

Loads the the PostgreSQL passfile on apply_pgpass and defers querying the password to get_password calls. This ensures the correct password is retrieved, even when builder methods are called on PgConnectOptions after initialization.

Does your PR solve an issue?

Fixes #2658

Is this a breaking change?

Yes. Parameters set by PgConnectOptions builder methods are now honored by the passfile lookup.

V02460 avatar Aug 25 '25 18:08 V02460