From: 德哥 <digoal@126.com>
To: Oleksandr Shulgin <oleksandr.shulgin@zalando.de>
Cc: Pg Bugs <pgsql-bugs@postgresql.org>
Subject: Re: BUG #14812: URI options cann't set with equal char.
Date: Wed, 13 Sep 2017 16:11:49 +0800 (CST)
Message-ID: <b6523f.8ef1.15e7a4b4f7c.Coremail.digoal@126.com> (raw)
In-Reply-To: <CACACo5SHsDSAH_3m6ikOojha3iic12pf2u9qujG2M1Z40r6aug@mail.gmail.com>
References: <20170912133722.25637.91@wrigleys.postgresql.org>
<CACACo5SHsDSAH_3m6ikOojha3iic12pf2u9qujG2M1Z40r6aug@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
It's OK, Thanks,I think our document can add this note in it.
--
公益是一辈子的事,I'm Digoal,Just Do It.
At 2017-09-12 22:49:03, "Oleksandr Shulgin" <oleksandr.shulgin@zalando.de> wrote:
On Tue, Sep 12, 2017 at 3:37 PM, <digoal@126.com> wrote:
```
psql postgres://postgres@127.0.0.1:1921/postgres?options="-c TimeZone =
+10"
psql: extra key/value separator "=" in URI query parameter: "options"
```
but in document:
https://www.postgresql.org/docs/10/static/libpq-connect.html
options
Specifies command-line options to send to the server at connection start.
For example, setting this to -c geqo=off sets the session's value of the
geqo parameter to off. Spaces within this string are considered to separate
command-line arguments, unless escaped with a backslash (\); write \\ to
represent a literal backslash. For a detailed discussion of the available
options, consult Chapter 19.
In the same document, under "33.1.1.2. Connection URIs":
Percent-encoding may be used to include symbols with special meaning in any of the URI parts.
Have you tried to replace "=" with "%3D" (and " " with "%20")?
Regards,
--
Alex
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-bugs@postgresql.org
Cc: digoal@126.com, oleksandr.shulgin@zalando.de
Subject: Re: BUG #14812: URI options cann't set with equal char.
In-Reply-To: <b6523f.8ef1.15e7a4b4f7c.Coremail.digoal@126.com>
References: <20170912133722.25637.91@wrigleys.postgresql.org> <CACACo5SHsDSAH_3m6ikOojha3iic12pf2u9qujG2M1Z40r6aug@mail.gmail.com> <b6523f.8ef1.15e7a4b4f7c.Coremail.digoal@126.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