Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r7iGC-006PIp-Sv for pgsql-general@arkaria.postgresql.org; Mon, 27 Nov 2023 20:31:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1r7iGB-00GK2N-IQ for pgsql-general@arkaria.postgresql.org; Mon, 27 Nov 2023 20:31:15 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r7iG9-00GK2E-PI for pgsql-general@lists.postgresql.org; Mon, 27 Nov 2023 20:31:15 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r7iG6-007elL-GL for pgsql-general@lists.postgresql.org; Mon, 27 Nov 2023 20:31:12 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 2A85B5C0178; Mon, 27 Nov 2023 15:31:09 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Mon, 27 Nov 2023 15:31:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm3; t= 1701117069; x=1701203469; bh=0Kggpq5J4//7zRnQ24KCTYTeA3bPHxKH7wd eiN0IcQU=; b=cQJzDEgclqZX+HEACeE0DMIyhvo7+ZxsAm434ypYup4LH4yGtSV 2ubDU9v3mcp3Zi2iGnIJoaREi4cPbU4REMsPAW4SeGCaCs4Jo14oJjnpiLt/2QkE O2ZudQ1bmHAPdY0BY9bOQQLfoIUwN72GIl+qabonnAENV6Z27CqUi7ElLwbHc+5R CqlZN21RcFhIrGE07UKJ2EeSy1+FjxJkRi4ftiyKujxZ6QDJ25GM2mjEVPeL4b6B dS38gIpB9KvXDJL2Hi92JoR8r4KVVMz7nqKTwf+FyrXJz2y+TqiYZlEH4PwHD6OW tt9+Vtt+iFmKWn0JivaPwIFfaS6KuQoKlwQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1701117069; x= 1701203469; bh=0Kggpq5J4//7zRnQ24KCTYTeA3bPHxKH7wdeiN0IcQU=; b=A FlvNpNo6UUvlp9wokvQQHzPZB7QnwODltYkU/gl2DmFqw4y8hoSwfq+uZJw0EDcM X9+99GdCkGO1y8Qm4tdCPAJa7sKif0Nz60bFu0fvf2BDD52RVkUWG5qgwjp45i4L W8UAZJTw9CTaa8SzhM5RDym5iUgNDepE35RThUj5mG3G+mjglw2xIJIJ8Ll7D3is J8+jsU9IRcvbztUMJY2au6LUmEWvybiH20gFJWDiOF/XAq5bs31ntVFyCJXKGReK Ua42mDoCYLek8zzy9iVaPptcDb3CaX4K+zd+ZEwO3UmONSkv3j+JvLgcYgsCLi4S ifzRDD0pk7N5ZBbzZ+OsQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudeiuddgudeflecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefkffggfgfuvfhfhfgjtgfgsehtkeertddtvdejnecuhfhrohhmpeetughr ihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtg homheqnecuggftrfgrthhtvghrnhepffelgeeifefgveduhedthfekuedtffejveegffeg jeevtdehgfduieetfeehjeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 27 Nov 2023 15:31:08 -0500 (EST) Message-ID: Date: Mon, 27 Nov 2023 12:31:07 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: IPV6 issue To: Atul Kumar , Ron Johnson , pgsql-general References: Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 11/27/23 12:11, Atul Kumar wrote: > Hi, > > I found that localhost was set to .bash_profile and when I removed it > and then re-attempted to connected the database using "psql postgres", I > got this new error: > > psql postgres -p 5432 > psql: error: 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"? > > So DO I need to restart the postgres service or is there any other > workaround? > > In postgresql.conf or any include *.conf it points to does port = 5432 and what is listen_addresses set to? How did you install Postgres? Do you have more then one version of psql installed? -- Adrian Klaver adrian.klaver@aklaver.com