Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1irFIg-0000L1-Cl for pgsql-bugs@arkaria.postgresql.org; Tue, 14 Jan 2020 06:03:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1irFId-0008Q6-JS for pgsql-bugs@arkaria.postgresql.org; Tue, 14 Jan 2020 06:03:35 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1irFIc-0008Pz-19 for pgsql-bugs@lists.postgresql.org; Tue, 14 Jan 2020 06:03:35 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1irFIT-0004xL-0S for pgsql-bugs@lists.postgresql.org; Tue, 14 Jan 2020 06:03:33 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id E16202247C; Tue, 14 Jan 2020 01:03:21 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 14 Jan 2020 01:03:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=GxYxXXP+TZMmVY49SCRXM8H2Gzf c3k04jQQSYSOBfLU=; b=R2VnFx21nsQ5jil3pJrgSlXiPXh0NTyloKbYgyn4kCZ 6W766e1cCHwsHRyheMRp32VfseEdo+A287xVfCrRSEQVeMfZx1wDgG/hedWKg7p4 HLRDK5euIhCZY732jjF9VpodWk4Qin0M8bELGlfW/PTboHxmIbJx/HmGOks+2ouX rm29Pgj34YSjlDsGWUpy07a0Lnwt9jnLVW62gFGAhzopbrT0l7WG95JEUL8mHpYp JGSbB06zUBWGSH8tjiUPQZP2oOdi0wxoBFC87TtYg4SvsiUped20hvGFq0DpHQ4l w5DFRdyDDoQKxft6mHEjNyTYecEEBAFol6KNd0GYuEA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=GxYxXX P+TZMmVY49SCRXM8H2Gzfc3k04jQQSYSOBfLU=; b=eYSHN8ReWXIVgR14i3Lc+E tFqVeMEEAXuKl14So18NWIxbbNbM/05T25cvZtiQgq2qM6mUbF96sdMIq2ZjuA59 RELm036EhLFXWVxj8JFBp4YlPUwzJ3nkrct7rJrH3dkSsSJarQUXOQoySgsBwwwu VlzXrXPk6t0IMuBBYsEFihH2iDEHednpo1ki01lJZ92TsptfGnOctycy5TggwG/e E3dKpyYt4Iee1Hpy0prT4avCEsUIBViVbJWHkJNGWXf9Rw2qJdu4Y1FoRLS6z5yV AUJEyrGRvlxNUMOSJjADvKjl9TJfwpNrZXfjMlaaH2+b+4s9YBoQavy/40zVfZnw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrvdejuddgledtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdlfeehmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucffohhmrghinhepfihikhhiphgvughirgdrohhrghenucfk phepudduuddruddtvddrudektddrudekheenucfrrghrrghmpehmrghilhhfrhhomhepmh hitghhrggvlhesphgrqhhuihgvrhdrgiihiienucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id 19AF88005C; Tue, 14 Jan 2020 01:03:19 -0500 (EST) Date: Tue, 14 Jan 2020 15:03:17 +0900 From: Michael Paquier To: Jobin Augustine Cc: Heikki Linnakangas , Oleksandr Shulgin , pgsql-bugs@lists.postgresql.org Subject: Re: libpq parameter parsing problem Message-ID: <20200114060317.GF1515@paquier.xyz> References: <22b4a79a-5d60-cec0-474e-4a68c8be2b7a@iki.fi> <20200109043809.GK2251@paquier.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="2NLGdgz3UMHa/lqP" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --2NLGdgz3UMHa/lqP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jan 13, 2020 at 08:07:06PM +0530, Jobin Augustine wrote: > Sorry for the late reply. Attaching a patch. > > - Percent-encoding may be used to include symbols with special meaning= in any > - of the URI parts, e.g. replace =3D with > - %3D. > - > + Connection URI need to be encoded with=20 > + Percen= t-encoding=20 > + if it includes symbols with special meaning in any of its parts.=20 > + For example: > + > +postgresql://postgres@localhost:5432/postgres?options=3D-c%20synchronous= _commit%3Doff%20-c%20geqo%3Doff > + > + where all =3D are replaced with %3D and=20 > + space character with %20 > The reference to wikipedia is nice to have. A small nit from me is that I would group the last sentence with the "For example", to give: "Here is an example where all =3D are replaced.." The first sentence sounds good to me. -- Michael --2NLGdgz3UMHa/lqP Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl4dWaQACgkQnvQgOdby QH0EqQ//cF3A99ZGSVd+y7cL2rp2TeXDL3ydgRnAr0s7brikJAje07/QMwugevGQ Z7hHV0yzwdC7vQwq1bHZ1kNPWKgUfoI9kjwZ3O0gWRZLyG1QFKZBDhFuMFxHIl4Z dg87JJC9xS7jHB4kFCb/uUboC/ylWho7Tl1MCeNQ9bXwnfx6GhNbzHuqjA75sWsj TWv6cMCSh/ao7VDwrx4ValAD6Cox33Ftrk7s7ItiJDpYWcaVLX8XOdo31ME1p+8F uel+QQ942UbwvG/GIyn5uWTKCvxlAQoClAPUEUChmyUfYgd4n3UburtB/aowOIQo YKWZJji3PhVoDlJUbyxzXBR2Jyo+B7B0mA3At+of7IGJYJp3AUxdzj49MLmYyd1v GQYq2+yvYReNmuaJ7AL27jY1h1ZKLVjMe/GAM1tg0dRh3V8WE/WjeqlRkPINLvHb o7wmMxvjxXFHKJerdDxHyLtE14aA3+gKnbDplDYm8xyFgYBj1a8he7cV0kVpAitd nQbFsnHy9dyE7SaBhuqfW+Soo366TXkmPwoRJNlC+MApHSzi/Dam5Qvotvg3boKE RoOpyCeOh/H2DeMCHjIFOjsPZ0Z84+10VkerjloGSd3mkBtX7OOuTFg0FnMl2xso DR0stJKXeidVNMKbfTUgICuN/T50Izr0MBniE0/ERTagoHYgD9M= =PAJL -----END PGP SIGNATURE----- --2NLGdgz3UMHa/lqP--