Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hMFBY-0006im-5s for pgsql-admin@arkaria.postgresql.org; Thu, 02 May 2019 17:07:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hMFBW-0000Ma-0g for pgsql-admin@arkaria.postgresql.org; Thu, 02 May 2019 17:07:50 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hMFBV-0000MS-KI for pgsql-admin@lists.postgresql.org; Thu, 02 May 2019 17:07:49 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hMFBT-00017q-7t for pgsql-admin@postgresql.org; Thu, 02 May 2019 17:07:48 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x42H7i8X002607; Thu, 2 May 2019 13:07:44 -0400 From: Tom Lane To: SAMMY CRISWELL cc: pgsql-admin Subject: Re: Psql: could not connect to server: No such file or directory In-reply-to: <363d3b8ca13a408c81d584a28d29da8e@BN1F00802MB0033.008f.mgd2.msft.net> References: <363d3b8ca13a408c81d584a28d29da8e@BN1F00802MB0033.008f.mgd2.msft.net> Comments: In-reply-to SAMMY CRISWELL message dated "Thu, 02 May 2019 15:50:18 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2605.1556816864.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 02 May 2019 13:07:44 -0400 Message-ID: <2606.1556816864@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk SAMMY CRISWELL writes: > I am preparing to upgrade my pqsl server from 9.3.5 to 9.6.12. I have in= stalled the 9.6 rpm onto the server that has 9.3.5 running. Postgres is st= ill running 9.3.5 on that server, but when I try to run psql I get the fol= lowing message. > "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"?" > The database is still running and working I just can't use any of the cl= ient commands like psql, pg_dump.... > And there is no "/var/run/postgresql/.s.PGSQL.5432" file. What you've probably run into here is that some packagers build Postgres to put the server's socket file into /tmp, while others build it to put the socket into /var/run/postgresql/ or some similar path. Likely, you are now using a new version of libpq.so that expects the latter while your server is still doing the former. You can override libpq's default with "-h /tmp" or equivalent in order to connect. regards, tom lane