Under the postgres user, I tried the psql
command and I'm getting this error:
psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"
But when I run /usr/local/pgsql/bin/psql
, it is working.
Is there anything wrong with my configuration?