Unable to connect Postgres using psql while postgres is already running.

From: Dinesh Chandra 12108 <Dinesh(dot)Chandra(at)cyient(dot)com>
To: "pgsql-performance(at)postgresql(dot)org" <pgsql-performance(at)postgresql(dot)org>
Subject: Unable to connect Postgres using psql while postgres is already running.
Date: 2018-01-10 09:01:24
Message-ID: 78c05a653d2f4c32aa324daac84ed5ec@cyient.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Hi Expert,

After restarting PostgreSQL Server, I am unable to connect postgres from putty, I am getting error

psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?

While postgres is already running and also I am able to connect databases from PGAdmin tool but not from command prompt.

Software-postgresql-9.3
Os-Centos

Regards,
Dinesh Chandra
|Database administrator (Oracle/PostgreSQL)| Cyient Ltd. Noida.
------------------------------------------------------------------
Mobile: +91-9953975849 | Ext 1078 |dinesh(dot)chandra(at)cyient(dot)com<mailto:%7Cdinesh(dot)chandra(at)cyient(dot)com>
Plot No. 7, NSEZ, Phase-II ,Noida-Dadri Road, Noida - 201 305,India.

________________________________

DISCLAIMER:

This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. Check all attachments for viruses before opening them. All views or opinions presented in this e-mail are those of the author and may not reflect the opinion of Cyient or those of our affiliates.

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Laurenz Albe 2018-01-10 09:10:58 Re: Unable to connect Postgres using psql while postgres is already running.
Previous Message Laurenz Albe 2018-01-10 08:51:47 Re: Performance of a Query