# TYPE DATABASE USER ADDRESS METHOD
# "local" is for Unix domain socket connections only
local all all 0.0.0.0 password
# IPv4 local connections:
host all all 0.0.0.0 password
# IPv6 local connections:
host all all ::1/128 md5
$ sudo -i -u postgres
$ psql
$ 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"?