Re: PATCH: Add uri percent-encoding for binary data - Mailing list pgsql-hackers

From Arthur Zakirov
Subject Re: PATCH: Add uri percent-encoding for binary data
Date
Msg-id 5eecb494-45d9-5def-0096-e74e343a19c2@gmail.com
Whole thread Raw
In response to PATCH: Add uri percent-encoding for binary data  (Anders Åstrand <anders@449.se>)
List pgsql-hackers
Hello,

On 2019/10/07 16:14, Anders Åstrand wrote:
> Hello
> 
> Attached is a patch for adding uri as an encoding option for
> encode/decode. It uses what's called "percent-encoding" in rfc3986
> (https://tools.ietf.org/html/rfc3986#section-2.1).

Thank you for the patch. I'm not very familiar with rfc3986. Is it 
insist that an output should have upper case characters? If not maybe it 
is good to reuse hextbl[] (which is in encode.c) instead of adding new 
upper_hex_digits[].

Also can you correct the documentation. encode() is mentioned here:
https://www.postgresql.org/docs/current/functions-binarystring.html

-- 
Arthur



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Read Uncommitted
Next
From: Craig Ringer
Date:
Subject: Re: Read Uncommitted