Content-Length: 275752 | pFad | http://github.com/postgrespro/postgres_cluster/commit/e0ed6817c0ee218a3681920807404603e042ff04

9D Doc: Improve description of connection strings with Percent-encoding · postgrespro/postgres_cluster@e0ed681 · GitHub
Skip to content

Commit e0ed681

Browse files
committed
Doc: Improve description of connection strings with Percent-encoding
Clarify the description related to the use of characters which can be encoded, and add an example. Author: Jobin Augustine Reviewed-by: Peter Eisentraut, Alvaro Herrera, Heikki Linnakangas, Michael Paquier, Alex Shulgin Discussion: https://postgr.es/m/CANaTPsrYgSgE2fuj3=4x=Jmx1c+NgkEDzftNknZbrMuqL+aBhQ@mail.gmail.com
1 parent 34a0a81 commit e0ed681

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://github.com/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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/e0ed6817c0ee218a3681920807404603e042ff04

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy