From e0ed6817c0ee218a3681920807404603e042ff04 Mon Sep 17 00:00:00 2001 From: Michael Paquier Date: Sun, 19 Jan 2020 18:55:51 +0900 Subject: [PATCH] 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 --- doc/src/sgml/libpq.sgml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml index 64cff49c4d..fcbf7fafbd 100644 --- a/doc/src/sgml/libpq.sgml +++ b/doc/src/sgml/libpq.sgml @@ -925,10 +925,15 @@ postgresql:///mydb?host=localhost&port=5433 - Percent-encoding may be used to include symbols with special meaning in any - of the URI parts, e.g. replace = with - %3D. - + Connection URI needs to be encoded with + Percent-encoding + if it includes symbols with special meaning in any of its parts. + Here is an example where equal sign (=) is replaced + with %3D and whitespace character with + %20: + +postgresql://user@localhost:5433/mydb?options=-c%20synchronous_commit%3Doff +