pgconn
pgconn copied to clipboard
When trying to establish a connection using MD5 auth method, if authentication fails due to wrong password `pgconn` will skip checking fallback configs. However if authentication method used when connecting...
There are quite a few non-exported error types that are returned by this API, such as `parseConfigError` and `connectError` that are not possible to be detected with [errors.As](https://golang.org/pkg/errors/#As) or [errors.Is](https://golang.org/pkg/errors/#Is)....
I'm curious if others have used the jackc/pgx/pgconn package with the [CloudSQL proxy](https://pkg.go.dev/github.com/GoogleCloudPlatform/cloudsql-proxy/proxy/dialers/postgres). I have a type that implements the `pgtype.BinaryDecoder` and `pgtype.BinaryEncoder` interfaces, and things work well when using...
I have a need to check whether an error is a `pgconn.writeError` or `pgconn.connLockError` for a project, but these errors are not exported.
When multiple hosts are specified, libpq allows them to have different passwords set via the .pgpass file. pgconn should match this behavior.