Re: cant connect to localhost:5432 (but unix socket ok) - Mailing list pgsql-general

From Tom Lane
Subject Re: cant connect to localhost:5432 (but unix socket ok)
Date
Msg-id 4093909.1612450232@sss.pgh.pa.us
Whole thread Raw
In response to Re: cant connect to localhost:5432 (but unix socket ok)  (Joao Miguel Ferreira <joao.miguel.c.ferreira@gmail.com>)
Responses Re: cant connect to localhost:5432 (but unix socket ok)
List pgsql-general
Joao Miguel Ferreira <joao.miguel.c.ferreira@gmail.com> writes:
> On Thu, Feb 4, 2021 at 2:26 PM hubert depesz lubaczewski <depesz@depesz.com>
> wrote:
>>> My database is not listening on TCP/localhost, desptite it is listening
>>>> on the unix socket. How can I investigate this?

> it's on 5433:

Hmm, something odd there, because a port number mismatch should have
resulted in psql failing to connect via unix socket either.  Maybe
you have more than one active postmaster?

Anyway, given these settings, "psql -p 5433 -h localhost" should
connect.  If you still get "connection refused" then you need to
look at the kernel firewall (packet filter) settings.

            regards, tom lane



pgsql-general by date:

Previous
From: Joao Miguel Ferreira
Date:
Subject: Re: cant connect to localhost:5432 (but unix socket ok)
Next
From: Joao Miguel Ferreira
Date:
Subject: Re: cant connect to localhost:5432 (but unix socket ok)