Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o6Hmq-0000nr-Pr for pgsql-admin@arkaria.postgresql.org; Tue, 28 Jun 2022 20:26:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1o6Hmp-0007Hd-MT for pgsql-admin@arkaria.postgresql.org; Tue, 28 Jun 2022 20:26:15 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o6Hmp-0007HT-CV for pgsql-admin@lists.postgresql.org; Tue, 28 Jun 2022 20:26:15 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o6Hmn-0002bC-AY for pgsql-admin@lists.postgresql.org; Tue, 28 Jun 2022 20:26:15 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 25SKQBbt2748259; Tue, 28 Jun 2022 16:26:11 -0400 From: Tom Lane To: Teja Jakkidi cc: Bruce Momjian , pgsql-admin@lists.postgresql.org Subject: Re: Postgres open source upgrades In-reply-to: References: Comments: In-reply-to Teja Jakkidi message dated "Tue, 28 Jun 2022 13:14:08 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <2748257.1656447971.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 28 Jun 2022 16:26:11 -0400 Message-ID: <2748258.1656447971@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Teja Jakkidi writes: > Cluster started and I was able to connect remotely with no issues. Howev= er when I tried using psql, I got below error: > Connection to server on socket =E2=80=9C/var/run/postgresql/.s.P= GSQL.5432=E2=80=9D failed. > But my postgres has been using socket file in /tmp location before upgra= de. I am not sure why after upgrade psql is searching at a different alloc= ation for socket. = > Can someone help me here? = Some distributions configure the code with a different default socket location because they don't like putting the socket in /tmp. It's best to use a server and libraries all built by the same source so that you don't have to fight with decisions like that. If you have to, though, it's possible to force the server to put its socket where you want (see unix_socket_directories). regards, tom lane