pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alban Hertroys <haramrae@gmail.com>
To: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: Egashira, Yusuke <egashira.yusuke@jp.fujitsu.com>
Cc: Giuseppe Sacco <giuseppe@eppesuigoccas.homedns.org>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: Question about password character in ECPG's connection string
Date: Wed, 28 Aug 2019 22:19:28 +0200
Message-ID: <1B0DE6CA-7E1F-4AB8-B6D5-D486FEFDD786@gmail.com> (raw)
In-Reply-To: <d9b3700d-40bd-1229-2e26-167fafab5c8a@aklaver.com>
References: <848B1649C8A6274AA527C4472CA11EDD5FC70CBE@G01JPEXMBYT02>
	<edb3a9df78da4afe744afd7aacd3684ea96dc394.camel@eppesuigoccas.homedns.org>
	<848B1649C8A6274AA527C4472CA11EDD5FC76A28@G01JPEXMBYT02>
	<d9b3700d-40bd-1229-2e26-167fafab5c8a@aklaver.com>


> 2)  "tcp:postgresql://localhost?user=myuser&password=password" looks like
> 
> "tcp:postgresql://localhost?user=myuser&password=my&pwd"
> 
> and password is parsed on the & and you also end up with an extra parameter pwd

Perhaps it helps to URL-encode the & in the password as %26?

Alban Hertroys
--
There is always an exception to always.









view thread (9+ messages)  latest in thread

Message-ID: <1B0DE6CA-7E1F-4AB8-B6D5-D486FEFDD786@gmail.com>
Permalink:  ../1B0DE6CA-7E1F-4AB8-B6D5-D486FEFDD786@gmail.com/
Also on:    postgresql.org/message-id/1B0DE6CA-7E1F-4AB8-B6D5-D486FEFDD786@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: haramrae@gmail.com, adrian.klaver@aklaver.com, egashira.yusuke@jp.fujitsu.com, giuseppe@eppesuigoccas.homedns.org
  Subject: Re: Question about password character in ECPG's connection string
  In-Reply-To: <1B0DE6CA-7E1F-4AB8-B6D5-D486FEFDD786@gmail.com>
  References: <848B1649C8A6274AA527C4472CA11EDD5FC70CBE@G01JPEXMBYT02> <edb3a9df78da4afe744afd7aacd3684ea96dc394.camel@eppesuigoccas.homedns.org> <848B1649C8A6274AA527C4472CA11EDD5FC76A28@G01JPEXMBYT02> <d9b3700d-40bd-1229-2e26-167fafab5c8a@aklaver.com> <1B0DE6CA-7E1F-4AB8-B6D5-D486FEFDD786@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox