With the current ebuild a use "postgres" is being created with the home directory set to "/var/lib". This leads to errors as such that if using psql as user postgres the history-file ~/.psql_history cannot be saved as /var/lib ist not writable for this user. Setting /var/lib/postgresql as home directory instead would solve this problem. The same problem exists for .bash_history for example. Reproducible: Always Steps to Reproduce: 1. su - postgres 2. psql, then \q Actual Results: ~/.psql_history cannot be saved Expected Results: ~/.psql_history would be save to postgres's home directory I think emerge --info is not needed here... not?
Thanks for your suggestion, assigning to postgresql maintainers
This has been fixed in dev-db/postgresql-server for quite some time. From /etc/passwd: postgres:x:70:70:added by portage for postgresql-server:/var/lib/postgresql:/bin/bash