From: | Paul Förster <paul(dot)foerster(at)gmail(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | pgsql-general list <pgsql-general(at)lists(dot)postgresql(dot)org> |
Subject: | Re: PostgreSQL URI |
Date: | 2021-02-25 15:14:27 |
Message-ID: | F69C8770-2CBD-4F6C-8A84-26300932572A@gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hi Tom,
> On 25. Feb, 2021, at 16:09, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>
> =?utf-8?Q?Paul_F=C3=B6rster?= <paul(dot)foerster(at)gmail(dot)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](at)][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](at)][host][:port][,...][/dbname][?param1=value1&...]
But shouldn't it say instead:
postgresql://[user[:password](at)][host[:port]][,...][/dbname][?param1=value1&...]
Thanks very much.
Cheers,
Paul
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2021-02-25 15:22:48 | Re: PostgreSQL URI |
Previous Message | Tom Lane | 2021-02-25 15:09:28 | Re: PostgreSQL URI |