pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: Paul Förster <paul.foerster@gmail.com>
Cc: pgsql-general list <pgsql-general@lists.postgresql.org>
Subject: Re: PostgreSQL URI
Date: Fri, 26 Feb 2021 11:13:03 -0500
Message-ID: <284593.1614355983@sss.pgh.pa.us> (raw)
In-Reply-To: <20210226152035.GA4787@alvherre.pgsql>
References: <20210226152035.GA4787@alvherre.pgsql>

Alvaro Herrera <alvherre@alvh.no-ip.org> writes:
> On 2021-Feb-26, Paul Förster wrote:
>> if you remove the outer brackets of host spec, then that means that
>> only the port may be repeated. The repeat is always meant to refer to
>> its immediate preceding argument. The outer brackets make sure that it
>> refers to either of both host *and* port.

> I think an easier fix is to move the repeat to the main line, i.e., make
> it "hostspec[,...]" and then hostspec is only [host][:port].

WFM.  Who's going to write the patch?  (I can, but if one of you
wants to, be my guest.)

			regards, tom lane





view thread (18+ messages)  latest in thread

Message-ID: <284593.1614355983@sss.pgh.pa.us>
Permalink:  ../284593.1614355983@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/284593.1614355983@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, alvherre@alvh.no-ip.org, paul.foerster@gmail.com
  Subject: Re: PostgreSQL URI
  In-Reply-To: <284593.1614355983@sss.pgh.pa.us>
  References: <20210226152035.GA4787@alvherre.pgsql> <284593.1614355983@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox