Re: PATCH: Add uri percent-encoding for binary data
Artur Zakirov <zaartur@gmail.com>
From: Arthur Zakirov <zaartur@gmail.com>
To: Anders Åstrand <anders@449.se>, pgsql-hackers@postgresql.org
Date: 2019-12-20T04:31:00Z
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