From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Paul Förster <paul.foerster@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-general list <pgsql-general@lists.postgresql.org>
Subject: Re: PostgreSQL URI
Date: Fri, 26 Feb 2021 12:20:35 -0300
Message-ID: <20210226152035.GA4787@alvherre.pgsql> (raw)
In-Reply-To: <B5912C36-E8E6-491C-AC6B-482E4D45EB99@gmail.com>
On 2021-Feb-26, Paul Förster wrote:
> Hi Tom,
>
> > On 26. Feb, 2021, at 15:51, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> >
> > +1. I think you could lose the outer brackets in hostspec in
> > this formulation, ie given that hostspec is already bracketed
> > above, it should be enough to write
> >
> > hostspec is [host][:port][,...]
>
> 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].
> > Also, the paramspec is under-bracketed today. Should be
> > more like
> >
> > paramspec is param=value[&...]
True.
--
Álvaro Herrera Valdivia, Chile
"Estoy de acuerdo contigo en que la verdad absoluta no existe...
El problema es que la mentira sí existe y tu estás mintiendo" (G. Lama)
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: alvherre@alvh.no-ip.org, paul.foerster@gmail.com, tgl@sss.pgh.pa.us
Subject: Re: PostgreSQL URI
In-Reply-To: <20210226152035.GA4787@alvherre.pgsql>
References: <B5912C36-E8E6-491C-AC6B-482E4D45EB99@gmail.com> <20210226152035.GA4787@alvherre.pgsql>
* 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