Re: Is my home $HOME or is it getpwent()->pw_dir ?

Chapman Flack <chap@anastigmatix.net>

From: Chapman Flack <chap@anastigmatix.net>
To: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2021-12-18T21:07:47Z
Lists: pgsql-hackers
On 12/18/21 15:57, Chapman Flack wrote:
> I see that I can set
> a HISTFILE variable (or set PSQL_HISTORY in the environment),
> and can set PSQLRC in the environment (but not as a variable),
> and nothing can set the .pgpass location

well, not in the psql docs, but in the environment variable section
for libpq I do see a PGPASSFILE.

-C



Commits

  1. Clean up messy API for src/port/thread.c.

  2. Prefer $HOME when looking up the current user's home directory.