Re: Postgres listens on random port

From: Saul Perdomo <saul(dot)perdomo(at)gmail(dot)com>
To: Kal <kalel(dot)code11(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Postgres listens on random port
Date: 2024-11-05 14:26:46
Message-ID: CAN3jBgGPjkrxG0E2SKjTo45heBRPEpLxNHvW8SN+4OAcq8rRuA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

" But the database actually listens on some random port like 20011"

How exactly did you determine this?

(If you used, say, netstat, can you share its output with us?)

On Tue, Nov 5, 2024 at 8:46 AM Kal <kalel(dot)code11(at)gmail(dot)com> wrote:

> Hi
>
> I have a scenario in which postgres listens on a random port different
> from the one which was specified in pg_ctl start command.
>
> This occurs in windows. When postgres is started on port 5460, the logs
> denote that postgres is started on 5460. But the database actually listens
> on some random port like 20011
>
> When the same postgres is started as a service,it listens on the intended
> port.
>
> I have tried with both normal and admin users.
>
> Any suggestions on this behaviour will be helpful.
>
>
> Regards
> Kal
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Kal 2024-11-05 14:34:24 Re: Postgres listens on random port
Previous Message Kal 2024-11-05 14:22:23 Re: Postgres listens on random port