Re: PATCH: Add uri percent-encoding for binary data

From: Arthur Zakirov <zaartur(at)gmail(dot)com>
To: Anders Åstrand <anders(at)449(dot)se>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: PATCH: Add uri percent-encoding for binary data
Date: 2019-12-20 04:31:00
Message-ID: 5eecb494-45d9-5def-0096-e74e343a19c2@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Craig Ringer 2019-12-20 04:33:02 Re: Read Uncommitted
Previous Message Tom Lane 2019-12-20 04:18:06 Re: Read Uncommitted