Postgres listens on random port

From: Kal <kalel(dot)code11(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Postgres listens on random port
Date: 2024-11-05 13:45:51
Message-ID: CACO9DYKtYpE4yeV1r4Gp4hFC7=n_-fG7+Bj35F5M+v0s=ZEDWw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Greg Sabino Mullane 2024-11-05 14:11:40 Re: Postgres listens on random port
Previous Message Tom Lane 2024-11-05 00:49:52 Re: nth_value out of more than n values returns null