Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite0ed681

Browse files
committed
Doc: Improve description of connection strings with Percent-encoding
Clarify the description related to the use of characters which can beencoded, and add an example.Author: Jobin AugustineReviewed-by: Peter Eisentraut, Alvaro Herrera, Heikki Linnakangas,Michael Paquier, Alex ShulginDiscussion:https://postgr.es/m/CANaTPsrYgSgE2fuj3=4x=Jmx1c+NgkEDzftNknZbrMuqL+aBhQ@mail.gmail.com
1 parent34a0a81 commite0ed681

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

‎doc/src/sgml/libpq.sgml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -925,10 +925,15 @@ postgresql:///mydb?host=localhost&port=5433
925925
</para>
926926

927927
<para>
928-
Percent-encoding may be used to include symbols with special meaning in any
929-
of the <acronym>URI</acronym> parts, e.g. replace <literal>=</literal> with
930-
<literal>%3D</literal>.
931-
928+
Connection <acronym>URI</acronym> needs to be encoded with
929+
<ulink url="https://tools.ietf.org/html/rfc3986#section-2.1">Percent-encoding</ulink>
930+
if it includes symbols with special meaning in any of its parts.
931+
Here is an example where equal sign (<literal>=</literal>) is replaced
932+
with <literal>%3D</literal> and whitespace character with
933+
<literal>%20</literal>:
934+
<programlisting>
935+
postgresql://user@localhost:5433/mydb?options=-c%20synchronous_commit%3Doff
936+
</programlisting>
932937
</para>
933938

934939
<para>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp