pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: gzh <gzhcoder@126.com>
To: noloader@gmail.com
Cc: pgsql-general@lists.postgresql.org
Subject: Re:Re: Re: Does psqlodbc_11_01_0000-x64 support special characters?
Date: Fri, 14 Oct 2022 13:43:52 +0800 (CST)
Message-ID: <372c75f9.3917.183d5053794.Coremail.gzhcoder@126.com> (raw)
In-Reply-To: <CAH8yC8mfoEzbAd+Vmxb9rr_tw4n8z9AdegbrzzMDGRDAPv6J2g@mail.gmail.com>
References: <3a47a8fb.5a22.183cb4f8c61.Coremail.gzhcoder@126.com>
	<4ac56203.71ff.183cbe8d7e2.Coremail.gzhcoder@126.com>
	<CAH8yC8kxFcRFm_78qDSP3_yxv4zFWfF9c=6NamB0u8EN8Sp4iw@mail.gmail.com>
	<302b6c45.32fe.183cf8bd78e.Coremail.gzhcoder@126.com>
	<CAH8yC8mfoEzbAd+Vmxb9rr_tw4n8z9AdegbrzzMDGRDAPv6J2g@mail.gmail.com>

Thank you for the information.

After testing, I found that I only need to escape the following 7 characters.




% → %25

" → %22

' → %27

+ → %2B

; → %3B

= → %3D

{ → %7B








At 2022-10-13 13:27:16, "Jeffrey Walton" <noloader@gmail.com> wrote:
>On Thu, Oct 13, 2022 at 12:13 AM gzh <gzhcoder@126.com> wrote:
>>
>> My PostgreSQL is deployed on Amazon RDS, so the password of PostgreSQL is random and has various reserved characters.
>>
>> I don't know if the reserved characters below are complete, and there are some characters (e.g. * , $) I tried without problems.
>>
>> Could you tell me which characters require percent-encoding for PostgreSQL password?
>>
>>
>> space → %20
>>
>> ! → %21
>>
>> " → %22
>>
>> # → %23
>>
>> $ → %24
>>
>> % → %25
>>
>> & → %26
>>
>> ' → %27
>>
>> ( → %28
>>
>> ) → %29
>>
>> * → %2A
>>
>> + → %2B
>>
>> , → %2C
>>
>> - → %2D
>>
>> . → %2E
>>
>> / → %2F
>>
>> : → %3A
>>
>> ; → %3B
>>
>> < → %3C
>>
>> = → %3D
>>
>> > → %3E
>>
>> ? → %3F
>>
>> @ → %40
>>
>> [ → %5B
>>
>> \ → %5C
>>
>> ] → %5D
>>
>> ^ → %5E
>>
>> _ → %5F
>>
>> ` → %60
>>
>> { → %7B
>>
>> | → %7C
>>
>> } → %7D
>>
>> ~ → %7E
>
>https://www.rfc-editor.org/rfc/rfc3986#section-2.2
>
>Jeff


view thread (6+ messages)

Message-ID: <372c75f9.3917.183d5053794.Coremail.gzhcoder@126.com>
Permalink:  ../372c75f9.3917.183d5053794.Coremail.gzhcoder@126.com/
Also on:    postgresql.org/message-id/372c75f9.3917.183d5053794.Coremail.gzhcoder@126.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: gzhcoder@126.com, noloader@gmail.com
  Subject: Re: Does psqlodbc_11_01_0000-x64 support special characters?
  In-Reply-To: <372c75f9.3917.183d5053794.Coremail.gzhcoder@126.com>
  References: <3a47a8fb.5a22.183cb4f8c61.Coremail.gzhcoder@126.com> <4ac56203.71ff.183cbe8d7e2.Coremail.gzhcoder@126.com> <CAH8yC8kxFcRFm_78qDSP3_yxv4zFWfF9c=6NamB0u8EN8Sp4iw@mail.gmail.com> <302b6c45.32fe.183cf8bd78e.Coremail.gzhcoder@126.com> <CAH8yC8mfoEzbAd+Vmxb9rr_tw4n8z9AdegbrzzMDGRDAPv6J2g@mail.gmail.com> <372c75f9.3917.183d5053794.Coremail.gzhcoder@126.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