Re: Postgres listens on random port - Mailing list pgsql-general

From Adrian Klaver
Subject Re: Postgres listens on random port
Date
Msg-id 2bd9d9c9-7e3e-46fc-9911-ffa259a5b548@aklaver.com
Whole thread Raw
In response to Re: Postgres listens on random port  (Kal <kalel.code11@gmail.com>)
List pgsql-general
On 11/5/24 06:22, Kal wrote:
> 
> 
> On Tue, 5 Nov 2024 at 7:42 PM, Greg Sabino Mullane <htamfids@gmail.com 
> <mailto:htamfids@gmail.com>> 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
adrian.klaver@aklaver.com




pgsql-general by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: Postgres 12.21?
Next
From: Dominique Devienne
Date:
Subject: Switching to NOINHERIT user triggers #XX000 error