Re: [PATCH] Allow Postgres to pick an unused port to listen

From: Daniel Gustafsson <daniel(at)yesql(dot)se>
To: Yurii Rashkovskii <yrashk(at)gmail(dot)com>
Cc: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Stephen Frost <sfrost(at)snowman(dot)net>, Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, Greg Stark <stark(at)mit(dot)edu>, Andrew Dunstan <andrew(at)dunslane(dot)net>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Cary Huang <cary(dot)huang(at)highgo(dot)ca>
Subject: Re: [PATCH] Allow Postgres to pick an unused port to listen
Date: 2023-07-10 12:27:23
Message-ID: 062A9D56-FF9E-4F79-8FD0-C66BE78E0F9F@yesql.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> On 11 May 2023, at 13:24, Yurii Rashkovskii <yrashk(at)gmail(dot)com> wrote:
>
> On Thu, May 11, 2023 at 10:36 AM Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org <mailto:alvherre(at)alvh(dot)no-ip(dot)org>> wrote:
> On 2023-May-11, Yurii Rashkovskii wrote:
>
> > ```
> > 127.0.0.1=5432 ::1=54321
> > ```
> >
> > Basically, a space-delimited set of address/port pairs (delimited by `=` to
> > allow IPv6 addresses to use a colon).
>
> This seems a bit too creative. I'd rather have the IPv6 address in
> square brackets, which clues the parser immediately as to the address
> family and use colons to separate the port number. If we do go with a
> separate file, which to me sounds easier than cramming it into the PID
> file, then one per line is likely better, if only because line-oriented
> Unix text tooling has an easier time that way.
>
> Just a general caution here that using square brackets to denote IPv6 addresses will make it (unnecessarily?) harder to process this with a shell script.

This patch is Waiting on Author in the current commitfest with no new patch
presented following the discussion here. Is there an update ready or should we
close it in this CF in favour of a future one?

--
Daniel Gustafsson

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Aleksander Alekseev 2023-07-10 12:33:27 Re: HOT readme missing documentation on summarizing index handling
Previous Message Ranier Vilela 2023-07-10 12:15:51 Re: POC, WIP: OR-clause support for indexes