public inbox for [email protected]  
help / color / mirror / Atom feed
Re: Postgres listens on random port
2+ messages / 2 participants
[nested] [flat]

* Re: Postgres listens on random port
@ 2024-11-05 14:26 Saul Perdomo <[email protected]>
  2024-11-05 14:34 ` Re: Postgres listens on random port Kal <[email protected]>
  0 siblings, 1 reply; 2+ messages in thread

From: Saul Perdomo @ 2024-11-05 14:26 UTC (permalink / raw)
  To: Kal <[email protected]>; +Cc: 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 <[email protected]> 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
>


^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Postgres listens on random port
  2024-11-05 14:26 Re: Postgres listens on random port Saul Perdomo <[email protected]>
@ 2024-11-05 14:34 ` Kal <[email protected]>
  0 siblings, 0 replies; 2+ messages in thread

From: Kal @ 2024-11-05 14:34 UTC (permalink / raw)
  To: Saul Perdomo <[email protected]>; +Cc: pgsql-general

Hi

The netstat command did not reveal any entries on the intended port (say
5460). The 5460 port was vacant, no processes were using it.
 I had to crawl through the postgres processes on task manager to find the
listening port.


Could this be due interference from other services? But the port 5460
remains unused.


Regards,
Kal

On Tue, 5 Nov 2024 at 7:57 PM, Saul Perdomo <[email protected]> wrote:

> " 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 <[email protected]> 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
>>
>


^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2024-11-05 14:34 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2024-11-05 14:26 Re: Postgres listens on random port Saul Perdomo <[email protected]>
2024-11-05 14:34 ` Kal <[email protected]>

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox