Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eZCGY-0003Ho-Ua for pgsql-performance@arkaria.postgresql.org; Wed, 10 Jan 2018 09:01:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eZCGX-0003Zv-Ic for pgsql-performance@arkaria.postgresql.org; Wed, 10 Jan 2018 09:01:45 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eZCGX-0003Zl-BZ for pgsql-performance@lists.postgresql.org; Wed, 10 Jan 2018 09:01:45 +0000 Received: from mxgate02.cyient.com ([110.76.168.203]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eZCGO-0003Q7-4D for pgsql-performance@postgresql.org; Wed, 10 Jan 2018 09:01:44 +0000 X-IronPort-AV: E=Sophos;i="5.46,339,1511807400"; d="scan'208,217";a="16733235" Received: from unknown (HELO CYMADFPASMTP) ([172.17.1.107]) by mxgate02.cyient.com with ESMTP; 10 Jan 2018 14:30:26 +0530 Received: from CYMADFPASMTP.CYIENT.COM (CYMADFPASMTP.CYIENT.COM [127.0.0.1]) by CYMADFPASMTP.CYIENT.COM (Service) with ESMTP id 60299C11CF27 for ; Wed, 10 Jan 2018 14:30:23 +0530 (IST) Received: from CYINMBX1.CORP.CYIENT.COM (unknown [172.17.4.161]) by CYMADFPASMTP.CYIENT.COM (Service) with ESMTP id 4D1A5C11CF26 for ; Wed, 10 Jan 2018 14:30:23 +0530 (IST) Received: from CYINMBX4.CORP.CYIENT.COM (172.17.4.164) by CYINMBX1.CORP.CYIENT.COM (172.17.4.161) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1415.2; Wed, 10 Jan 2018 14:31:24 +0530 Received: from CYINMBX4.CORP.CYIENT.COM ([fe80::5926:85ba:e906:e8e8]) by CYINMBX4.CORP.CYIENT.COM ([fe80::5926:85ba:e906:e8e8%19]) with mapi id 15.01.1415.002; Wed, 10 Jan 2018 14:31:24 +0530 From: Dinesh Chandra 12108 To: "pgsql-performance@postgresql.org" Subject: Unable to connect Postgres using psql while postgres is already running. Thread-Topic: Unable to connect Postgres using psql while postgres is already running. Thread-Index: AdOJvz3HU/RpON8SSeCQ5FaRDP43vAAMjB3w Date: Wed, 10 Jan 2018 09:01:24 +0000 Message-ID: <78c05a653d2f4c32aa324daac84ed5ec@cyient.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.17.4.81] Content-Type: multipart/alternative; boundary="_000_78c05a653d2f4c32aa324daac84ed5eccyientcom_" MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --_000_78c05a653d2f4c32aa324daac84ed5eccyientcom_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Expert, After restarting PostgreSQL Server, I am unable to connect postgres from pu= tty, 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 f= rom 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.chandra@cyient.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 t= hem. 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. --_000_78c05a653d2f4c32aa324daac84ed5eccyientcom_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi Expert,<= /span>

 

After restarting Postg= reSQL Server, I am unable to connect postgres from putty, I am getting erro= r

 

psql: could not connec= t to server: No such file or directory

    Is = the server running locally and accepting

    con= nections on Unix domain socket "/tmp/.s.PGSQL.5432"?

 

While postgres is alre= ady running and also I am able to connect databases from PGAdmin tool but n= ot from command prompt.

 

Software-postgresql-9.= 3

Os-Centos

 

Regards,

Dinesh Chandra

|Database administrator (Oracle/Postg= reSQL)| Cyient Ltd. Noida.

----------------------------------= --------------------------------

Mobile: +91-9953975849 | Ext 1078 |dinesh.chandra@cyient.com

Plot No. 7, NSEZ, Phase-II ,Noida-Dad= ri 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 a= ttachments 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.
--_000_78c05a653d2f4c32aa324daac84ed5eccyientcom_--