public inbox for [email protected]  
help / color / mirror / Atom feed
From: Adrian Klaver <[email protected]>
To: Kal <[email protected]>
To: Greg Sabino Mullane <[email protected]>
Cc: [email protected]
Subject: Re: Postgres listens on random port
Date: Tue, 5 Nov 2024 07:46:46 -0800
Message-ID: <[email protected]> (raw)
In-Reply-To: <CACO9DYKsL8iisNBCxk6jtg1ZNdDYisKzdfT-9HcBVgOBjfCouQ@mail.gmail.com>
References: <CACO9DYKtYpE4yeV1r4Gp4hFC7=n_-fG7+Bj35F5M+v0s=ZEDWw@mail.gmail.com>
	<CAKAnmm+iDooPV=6WgJMeaXiUeCJ26NMU6ZrH00W2JNziQJv3JA@mail.gmail.com>
	<CACO9DYKsL8iisNBCxk6jtg1ZNdDYisKzdfT-9HcBVgOBjfCouQ@mail.gmail.com>

On 11/5/24 06:22, Kal wrote:
> 
> 
> On Tue, 5 Nov 2024 at 7:42 PM, Greg Sabino Mullane <[email protected] 
> <mailto:[email protected]>> wrote:
> 
>     Start by seeing where the port is actually being set by running this:
> 
>     select setting, source, sourcefile, sourceline from pg_settings
>     where name = 'port';
>     Cheers,
>     Greg
> 
> Hi Greg,
> 
> The query output states the source as command line. Event the port value 
> output from show port is same as given in pg_ctl command.

How did you connect to the database to run the query if the port is random?

In other words what client and connection settings did you use to 
connect to the server and run the query?

> 
> But the database is listening on some other random port.
> 
> 
> Regards
> Kal

-- 
Adrian Klaver
[email protected]







reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: Postgres listens on random port
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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