pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #14812: URI options cann't set with equal char.
4+ messages / 4 participants
[nested] [flat]
Commits from this thread:
2017-09-19 d61f5bb7c4 ba01ef267e doc: add example of % substitution for connection URIs
* BUG #14812: URI options cann't set with equal char.
@ 2017-09-12 13:37 digoal@126.com
0 siblings, 1 reply; 4+ messages in thread
From: digoal@126.com @ 2017-09-12 13:37 UTC (permalink / raw)
To: pgsql-bugs; +Cc: digoal@126.com
The following bug has been logged on the website:
Bug reference: 14812
Logged by: Zhou Digoal
Email address: digoal@126.com
PostgreSQL version: 10beta4
Operating system: CentOS 7.x x64
Description:
there is some confusion:
```
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.
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: BUG #14812: URI options cann't set with equal char.
@ 2017-09-12 14:49 Oleksandr Shulgin <oleksandr.shulgin@zalando.de>
parent: digoal@126.com
0 siblings, 1 reply; 4+ messages in thread
From: Oleksandr Shulgin @ 2017-09-12 14:49 UTC (permalink / raw)
To: digoal@126.com; +Cc: pgsql-bugs
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
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: BUG #14812: URI options cann't set with equal char.
@ 2017-09-13 08:11 德哥 <digoal@126.com>
parent: Oleksandr Shulgin <oleksandr.shulgin@zalando.de>
0 siblings, 1 reply; 4+ messages in thread
From: 德哥 @ 2017-09-13 08:11 UTC (permalink / raw)
To: Oleksandr Shulgin <oleksandr.shulgin@zalando.de>; +Cc: pgsql-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
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: BUG #14812: URI options cann't set with equal char.
@ 2017-09-19 16:26 Bruce Momjian <bruce@momjian.us>
parent: 德哥 <digoal@126.com>
0 siblings, 0 replies; 4+ messages in thread
From: Bruce Momjian @ 2017-09-19 16:26 UTC (permalink / raw)
To: 德哥 <digoal@126.com>; +Cc: Oleksandr Shulgin <oleksandr.shulgin@zalando.de>; pgsql-bugs
On Wed, Sep 13, 2017 at 04:11:49PM +0800, 德哥 wrote:
>
> It's OK, Thanks,I think our document can add this note in it.
Yes, good suggestion. Docs added, which can be viewed here:
http://momjian.us/pgsql_docs/libpq-connect.html#libpq-connstring
--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ As you are, so once was I. As I am, so you will be. +
+ Ancient Roman grave inscription +
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2017-09-19 16:26 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-09-12 13:37 BUG #14812: URI options cann't set with equal char. digoal@126.com
2017-09-12 14:49 ` Oleksandr Shulgin <oleksandr.shulgin@zalando.de>
2017-09-13 08:11 ` 德哥 <digoal@126.com>
2017-09-19 16:26 ` Bruce Momjian <bruce@momjian.us>
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