Re: Document that server will start even if it's unable to open some TCP/IP ports

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Nathan Bossart <nathandbossart(at)gmail(dot)com>
Cc: Gurjeet Singh <gurjeet(at)singh(dot)im>, Postgres Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Document that server will start even if it's unable to open some TCP/IP ports
Date: 2023-09-07 23:13:44
Message-ID: ZPpZKLgVpRq2faz9@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Sep 7, 2023 at 02:54:13PM -0700, Nathan Bossart wrote:
> Thanks for picking this up.
>
> On Thu, Sep 07, 2023 at 03:33:57PM -0400, Bruce Momjian wrote:
> > The default value is <systemitem class="systemname">localhost</systemitem>,
> > which allows only local TCP/IP <quote>loopback</quote> connections to be
> > - made. While client authentication (<xref
> > + made. If <varname>listen_addresses</varname> is not empty,
> > + the server will start if it can open a <varname>port</varname>
> > + on at least one TCP/IP address. A warning will be emitted for
> > + any TCP/IP address which cannot be opened.
>
> I think we should move this sentence to before the ѕentence about the
> default value. That way, "If the list is empty, ..." is immediately
> followed by "If the list is not empty, ..."
>
> IMO the phrase "open a port" is kind of nonstandard. I think we should say
> something along the lines of
>
> If listen_addresses is not empty, the server will start only if it can
> listen on at least one of the specified addresses. A warning will be
> emitted for any addresses that the server cannot listen on.

Good idea, updated patch attached.

--
Bruce Momjian <bruce(at)momjian(dot)us> https://momjian.us
EDB https://enterprisedb.com

Only you can decide what is important to you.

Attachment Content-Type Size
listen.diff text/x-diff 1.2 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2023-09-07 23:48:12 Re: Cutting support for OpenSSL 1.0.1 and 1.0.2 in 17~?
Previous Message Nathan Bossart 2023-09-07 22:28:34 Re: Add 'worker_type' to pg_stat_subscription