Hi Shreeyansh ,
Thanks for the response .
I installed postgres 10.0 rpm . It created osuser postgres and executed initdb and cluster is up and running .
Then I took my current user (not root) to create another cluster using initdb . It successfully created but I am not able to log in to the new cluster using psql and current user(through which initdb was executed).
Thanks,
Soumitra
From: Shreeyansh Dba <shreeyansh2014@xxxxxxxxx>
Sent: Friday, March 1, 2019 11:29 AM To: soumitra bhandary Cc: pgsql-admin@xxxxxxxxxxxxxxxxxxxx; pgsql-admin@xxxxxxxxxxxxxx Subject: Re: Installation of Postgres 10.0 and running application with HA without postgres user at OS Hi Sumintra,
You have to create a postgres OS user,initdb must be run as the user that will own the server process, because the server needs to have access to the files and directories that initdb creates. Since the server cannot be run as root,
you must not run initdb as root either. (It will in fact refuse to do so.)
On Fri, Mar 1, 2019 at 10:37 AM soumitra bhandary <soumitra.bhandary@xxxxxxxxxxx> wrote:
|