Re: Issues with building snap packages and psql - Mailing list pgsql-hackers

From Joshua D. Drake
Subject Re: Issues with building snap packages and psql
Date
Msg-id b87e9732-03f6-5bc1-9628-a7b567344522@commandprompt.com
Whole thread Raw
In response to Re: Issues with building snap packages and psql  (Andres Freund <andres@anarazel.de>)
Responses Re: Issues with building snap packages and psql  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
Hello,

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) [1]. 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.

Sincerely,

JD

1. 
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_06_01

-- 
Command Prompt, Inc.                  http://the.postgres.company/                        +1-503-667-4564
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.



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Declarative partitioning - another take
Next
From: Merlin Moncure
Date:
Subject: Re: emergency outage requiring database restart