Is the 9,4 instance up and running? Check ps -ef|grep -i postgres | grep 5432
Check few other settings if not connecting locally like
#listen_addresses = 'localhost'(making to *) or pg_hba.conf settings.
On Thu, Feb 13, 2020 at 9:53 PM Murali Paramu <ipmurali@gmail.com> wrote:
Hello Team,
I have two versions of PostgreSQL 9.4 and 12.1
both servers can be connected through pgAdmin.
But through psql I can connect only to 12.1
when i connect to 9.4 got below error:
$ psql -U postgres -p 5432 psql: error: could not connect to server: 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"?