Re: BUG #14872: libpq requires a home directory

David G. Johnston <david.g.johnston@gmail.com>

From: "David G. Johnston" <david.g.johnston@gmail.com>
To: dcwatson@gmail.com, Tom Lane <tgl@sss.pgh.pa.us>
Cc: "pgsql-bugs@postgresql.org" <pgsql-bugs@postgresql.org>
Date: 2017-10-25T21:37:03Z
Lists: pgsql-bugs
On Wed, Oct 25, 2017 at 1:04 PM, <dcwatson@gmail.com> wrote:

> ​​
> I get an error saying "Could not get home directory to
> locate password file". I think I've traced it to the referenced commit, and
> was hoping to get some confirmation that this was indeed an unintended side
> effect.
>


> [1]
> https://github.com/postgres/postgres/commit/ba005f193d88a8404e81db3df223cf
> 689d64d75e


​I agree and point out that the doc part of that commit says: "​(No error
is reported if this file does not exist.)".

David J.

Commits

  1. Fix libpq to not require user's home directory to exist.

  2. Allow password file name to be specified as a libpq connection parameter.