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 09:51:14 -0500
Message-ID: <249146.1614351074@sss.pgh.pa.us> (raw)
In-Reply-To: <20210226143050.GA875@alvherre.pgsql>
References: <20210226143050.GA875@alvherre.pgsql>
Alvaro Herrera <alvherre@alvh.no-ip.org> writes:
> I wonder if we shouldn't instead try to break it up in parts that can be
> explained or described separately. This many brackets makes it pretty
> hard to read.
> We could say something like
> postgresql://[userspec@][hostspec][/dbname][?paramspec]
> where
> userspec is user[:password]
> hostspec is [[host][:port]][,...]
> paramspec is param1=value1&...
+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[&...]
regards, tom lane
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: <249146.1614351074@sss.pgh.pa.us>
References: <20210226143050.GA875@alvherre.pgsql> <249146.1614351074@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