From: Paul Förster <paul.foerster@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: pgsql-general list <pgsql-general@lists.postgresql.org>
Subject: Re: PostgreSQL URI
Date: Fri, 26 Feb 2021 15:57:53 +0100
Message-ID: <B5912C36-E8E6-491C-AC6B-482E4D45EB99@gmail.com> (raw)
In-Reply-To: <249146.1614351074@sss.pgh.pa.us>
References: <20210226143050.GA875@alvherre.pgsql>
<249146.1614351074@sss.pgh.pa.us>
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][,...]
>
> Also, the paramspec is under-bracketed today. Should be
> more like
>
> paramspec is param=value[&...]
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.
This is exactly what I was initially confused about. So I consider the outer brackets essential for that.
Cheers,
Paul
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: paul.foerster@gmail.com, tgl@sss.pgh.pa.us, alvherre@alvh.no-ip.org
Subject: Re: PostgreSQL URI
In-Reply-To: <B5912C36-E8E6-491C-AC6B-482E4D45EB99@gmail.com>
References: <20210226143050.GA875@alvherre.pgsql> <249146.1614351074@sss.pgh.pa.us> <B5912C36-E8E6-491C-AC6B-482E4D45EB99@gmail.com>
* 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