From: Bruce Momjian <bruce@momjian.us>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Michael Paquier <michael@paquier.xyz>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: move hex_decode() to /common so it can be called from frontend
Date: Thu, 24 Dec 2020 21:22:32 -0500
Message-ID: <20201225022232.GA19054@momjian.us> (raw)
In-Reply-To: <1124719.1608862827@sss.pgh.pa.us>
References: <E1ksZ3Y-0006le-FE@gemulon.postgresql.org>
<1080268.1608851689@sss.pgh.pa.us>
<20201224231620.GA21105@momjian.us>
<X+UsmYFlBALRMpM7@paquier.xyz>
<20201225014733.GC21105@momjian.us>
<1124719.1608862827@sss.pgh.pa.us>
On Thu, Dec 24, 2020 at 09:20:27PM -0500, Tom Lane wrote:
> Bruce Momjian <bruce@momjian.us> writes:
> > I now understand the wisdom of your suggestion. Attached is a patch
> > that removes hex_decode from ecpg properly, and returns -1 from the
> > /common version.
>
> I'm fairly unimpressed with this. I don't like having fundamentally
> different (and 100% undocumented) behaviors between the frontend and
> backend versions of the "same" function.
>
> I think you should leave ecpglib alone. Unifying that little bit
> of code isn't worth having to contort the API of the common version.
OK, sure, I can see that point too.
--
Bruce Momjian <bruce@momjian.us> https://momjian.us
EnterpriseDB https://enterprisedb.com
The usefulness of a cup is in its emptiness, Bruce Lee
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-committers@postgresql.org
Cc: bruce@momjian.us, tgl@sss.pgh.pa.us, michael@paquier.xyz
Subject: Re: pgsql: move hex_decode() to /common so it can be called from frontend
In-Reply-To: <20201225022232.GA19054@momjian.us>
References: <E1ksZ3Y-0006le-FE@gemulon.postgresql.org> <1080268.1608851689@sss.pgh.pa.us> <20201224231620.GA21105@momjian.us> <X+UsmYFlBALRMpM7@paquier.xyz> <20201225014733.GC21105@momjian.us> <1124719.1608862827@sss.pgh.pa.us> <20201225022232.GA19054@momjian.us>
* 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