Re: Postgres listens on random port

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Kal <kalel(dot)code11(at)gmail(dot)com>, Greg Sabino Mullane <htamfids(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Postgres listens on random port
Date: 2024-11-05 15:46:46
Message-ID: 2bd9d9c9-7e3e-46fc-9911-ffa259a5b548@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 11/5/24 06:22, Kal wrote:
>
>
> On Tue, 5 Nov 2024 at 7:42 PM, Greg Sabino Mullane <htamfids(at)gmail(dot)com
> <mailto:htamfids(at)gmail(dot)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(dot)klaver(at)aklaver(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Dominique Devienne 2024-11-05 17:10:46 Switching to NOINHERIT user triggers #XX000 error
Previous Message David G. Johnston 2024-11-05 15:30:27 Re: Postgres 12.21?