After some further investigation and collaboration with #postgresql it
looks like what we have here is an actual bug or at least improper
implementation. Apparently, we use getpwuid on the euid to locate the
'home directory'. This is incorrect (as well as inconsistent to our own
documentation) . Our documentation says that dotfiles are
~/.whatever, and ~ on its own in shell means the value of $HOME, it does
NOT mean the current user's homedir from getpwuid.
It is also inconsistent with how other programs behave. For example if
psql uses readline, and you change the value of $HOME, then readline
uses $HOME/.inputrc whereas psql does not use $HOME/.psqlrc.
Command Prompt, Inc. http://the.postgres.company/
PostgreSQL Centered full stack support, consulting and development.
Everyone appreciates your honesty, until you are honest with them.
Unless otherwise stated, opinions are my own.
Sent via pgsql-hackers mailing list (firstname.lastname@example.org)
To make changes to your subscription: