Re: [PATCH] Allow Postgres to pick an unused port to listen - Mailing list pgsql-hackers

From Greg Stark
Subject Re: [PATCH] Allow Postgres to pick an unused port to listen
Date
Msg-id CAM-w4HNO6d9Egr1JX+wGRFSJDOFVN6wMFxajfqdpgdx=eH20zQ@mail.gmail.com
Whole thread Raw
In response to Re: [PATCH] Allow Postgres to pick an unused port to listen  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: [PATCH] Allow Postgres to pick an unused port to listen
List pgsql-hackers
On Wed, 12 Apr 2023 at 11:02, Robert Haas <robertmhaas@gmail.com> wrote:
>
> I mostly just wanted to say that I disagreed with Tom about the
> particular point on postmaster.pid, without really expressing an
> opinion about anything else.

I don't object to using the pid file as the mechanism -- but it is a
bit of an awkward UI for shell scripting. I imagine it would be handy
if pg_ctl had an option to just print the port number so you could get
it with a simple port=`pg_ctl -D <dir> status-port`

-- 
greg



pgsql-hackers by date:

Previous
From: Jacob Champion
Date:
Subject: Re: [PATCH] Add `verify-system` sslmode to use system CA pool for server cert
Next
From: Robert Haas
Date:
Subject: Re: [PATCH] Allow Postgres to pick an unused port to listen