From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Joao Miguel Ferreira <joao(dot)miguel(dot)c(dot)ferreira(at)gmail(dot)com> |
Cc: | depesz(at)depesz(dot)com, pgsql-general <pgsql-general(at)lists(dot)postgresql(dot)org> |
Subject: | Re: cant connect to localhost:5432 (but unix socket ok) |
Date: | 2021-02-04 14:50:32 |
Message-ID: | 4093909.1612450232@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Joao Miguel Ferreira <joao(dot)miguel(dot)c(dot)ferreira(at)gmail(dot)com> writes:
> On Thu, Feb 4, 2021 at 2:26 PM hubert depesz lubaczewski <depesz(at)depesz(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Joao Miguel Ferreira | 2021-02-04 15:02:56 | Re: cant connect to localhost:5432 (but unix socket ok) |
Previous Message | Joao Miguel Ferreira | 2021-02-04 14:36:28 | Re: cant connect to localhost:5432 (but unix socket ok) |