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 1lqHw7-0006tr-82 for pgsql-general@arkaria.postgresql.org; Mon, 07 Jun 2021 16:17:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lqHw5-0007SR-EY for pgsql-general@arkaria.postgresql.org; Mon, 07 Jun 2021 16:17:09 +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 1lqHw5-0007SI-5L for pgsql-general@lists.postgresql.org; Mon, 07 Jun 2021 16:17:09 +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 1lqHw2-0001gt-Oe for pgsql-general@lists.postgresql.org; Mon, 07 Jun 2021 16:17:08 +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 157GH4fm880845; Mon, 7 Jun 2021 12:17:04 -0400 From: Tom Lane To: Rich Shepard cc: pgsql-general@lists.postgresql.org Subject: Re: Database issues when adding GUI In-reply-to: References: <48392c33-d63e-15be-e7de-d7a7c0c2fd80@gmail.com> <880155.1623081638@sss.pgh.pa.us> Comments: In-reply-to Rich Shepard message dated "Mon, 07 Jun 2021 09:12:01 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <880843.1623082624.1@sss.pgh.pa.us> Date: Mon, 07 Jun 2021 12:17:04 -0400 Message-ID: <880844.1623082624@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Rich Shepard writes: > On Mon, 7 Jun 2021, Tom Lane wrote: >> What you've got there is that Unix-socket connections work, but TCP >> connections do not. Check the server's listen_addresses setting. If that >> says to allow connections on these IP addresses, next check your kernel >> firewall. > What I read on is pg_hba.conf is exactly not what I told you to check. The "connection refused" failure implies that you're not getting as far as where it would look at pg_hba.conf. If you were, and the contents of that file were wrong, you'd get a more on-point message. Hence, you need to look at what is stopping TCP connections from going through at all. (Whether this is really the cause of your original problem remains doubtful to me, but we'll see.) regards, tom lane