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:///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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy