pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bruce Momjian <bruce@momjian.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:20:27 -0500
Message-ID: <1124719.1608862827@sss.pgh.pa.us> (raw)
In-Reply-To: <20201225014733.GC21105@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>

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.

			regards, tom lane





view thread (7+ messages)  latest in thread

Message-ID: <1124719.1608862827@sss.pgh.pa.us>
Permalink:  ../1124719.1608862827@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1124719.1608862827@sss.pgh.pa.us

 · 

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-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, bruce@momjian.us, michael@paquier.xyz
  Subject: Re: pgsql: move hex_decode() to /common so it can be called from frontend
  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>

* 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