> I ran > + /usr/bin/initdb --pgdata=/usr/xxx/databases/pgsql/data --auth=ident > without issue however when I try to start the database it complains about the lockfile. > FATAL: could not create lock file "/var/run/postgresql/.s.PGSQL.5432.lock": Permission denied
I was able to resolve this issue using -k /tmp with postmaster:
psql: FATAL: no pg_hba.conf entry for host "::1", user "slanglois", database "postgres", SSL off
To get it to connect I have to add the following to pg_hba.conf
host all all ::1/128 trust
I was going to put this under a new subject but it seems to me like it is still related to the lock file being expected in /var/run/postgres when it is trying to connect even though I changed it to /tmp.
Why is the local connection not working without having to add host ::1/128 to the pg_hba.conf file. I thought specifying local all all trust would allow any local connection.