Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bugfix: treat PGHOST env var as directory properly
This change makes the driver find the actual socket file and is consistent with how libpq appends .s.PGSQL.5432 to the value of the env var when it's a path: ❯ mkdir -p /tmp/foo && PGHOST=/tmp/foo psql psql: error: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/foo/.s.PGSQL.5432"?
- Loading branch information