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 1o8B9d-0005aP-AE for pgsql-novice@arkaria.postgresql.org; Mon, 04 Jul 2022 01:45:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1o8B9b-00021U-QB for pgsql-novice@arkaria.postgresql.org; Mon, 04 Jul 2022 01:45:35 +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 1o8B9b-00021K-IK for pgsql-novice@lists.postgresql.org; Mon, 04 Jul 2022 01:45:35 +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 1o8B9Z-0007D4-Fq for pgsql-novice@postgresql.org; Mon, 04 Jul 2022 01:45:35 +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 2641jVqh1435902; Sun, 3 Jul 2022 21:45:31 -0400 From: Tom Lane To: BeeRich Lists cc: Submit Postgresql Novice Subject: Re: psql: error: could not connect to server: Connection refused In-reply-to: <5C6C7AA2-88FF-4F15-B7AC-92B2C2584877@gmail.com> References: <5C6C7AA2-88FF-4F15-B7AC-92B2C2584877@gmail.com> Comments: In-reply-to BeeRich Lists message dated "Sun, 03 Jul 2022 21:06:33 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <1435900.1656899131.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sun, 03 Jul 2022 21:45:31 -0400 Message-ID: <1435901.1656899131@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk BeeRich Lists writes: > Hi folks. I cannot connect to my postgres server. I=E2=80=99ve run thr= ough all the directives and I still can=E2=80=99t understand why this isn=E2= =80=99t showing up. = It sure looks like the postmaster doesn't think you told it to listen on any TCP sockets, because if it did they'd have been listed in the initial log output. Are you sure that this setting is really the active one? > listen_addresses =3D '*' It could also be that there is something weird about your system environment that is causing '*' to expand to nothing. Try explicitly specifying '127.0.0.1, ::1' instead. regards, tom lane