From: Paul Förster <paul.foerster@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-general list <pgsql-general@lists.postgresql.org>
Subject: Re: PostgreSQL URI
Date: Thu, 25 Feb 2021 16:14:27 +0100
Message-ID: <F69C8770-2CBD-4F6C-8A84-26300932572A@gmail.com> (raw)
In-Reply-To: <109141.1614265768@sss.pgh.pa.us>
References: <6E752D6B-487C-463E-B6E2-C32E7FB007EA@gmail.com>
<109141.1614265768@sss.pgh.pa.us>
Hi Tom,
> On 25. Feb, 2021, at 16:09, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
> =?utf-8?Q?Paul_F=C3=B6rster?= <paul.foerster@gmail.com> writes:
>> in https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING it says that the syntax for a PostgreSQL URI is:
>
>> postgresql://[user[:password]@][host][:port][,...][/dbname][?param1=value1&...]
>
>> What I don't understand is the [,...] part, i.e. optionally repeating argument.
>
> You can repeat the host[:port] part, no more.
I suspected this already. Still the position of the closing angle bracket behind the "host" part in the syntax is IMHO wrong in the doc.
It currently says:
postgresql://[user[:password]@][host][:port][,...][/dbname][?param1=value1&...]
But shouldn't it say instead:
postgresql://[user[:password]@][host[:port]][,...][/dbname][?param1=value1&...]
Thanks very much.
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
Subject: Re: PostgreSQL URI
In-Reply-To: <F69C8770-2CBD-4F6C-8A84-26300932572A@gmail.com>
References: <6E752D6B-487C-463E-B6E2-C32E7FB007EA@gmail.com> <109141.1614265768@sss.pgh.pa.us> <F69C8770-2CBD-4F6C-8A84-26300932572A@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