pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Paquier <michael@paquier.xyz>
Cc: Postgres bugs <pgsql-bugs@postgresql.org>
Cc: Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Subject: Re: Conflicting declarations for b64_encode etc. on Solaris 11.4 Beta
Date: Wed, 28 Feb 2018 18:37:27 -0500
Message-ID: <9303.1519861047@sss.pgh.pa.us> (raw)
In-Reply-To: <20180214060454.GA4544@paquier.xyz>
References: <ydd372wk28h.fsf@CeBiTec.Uni-Bielefeld.DE>
	<20180124015251.GA14001@paquier.xyz>
	<20180214060454.GA4544@paquier.xyz>

Michael Paquier <michael@paquier.xyz> writes:
> Attached is an updated patch which does a bit more consistency work.  I
> have renamed the base64 functions with pg_base64_ as prefix in encode.c,
> to avoid any conflicts in encode.c.  pgp-armor.c also gets the same
> treatment.  There is no real point in renaming the other functions is
> not necessary, and hex_encode/hex_decode are publicly available, so
> renaming them would cause breakage for any callers of them in plugins.

Pushed.

> It is a bit sad that both pgcrypto and encode.c hold copies of base64
> functions.

And on top of that, there's src/common/base64.c with again almost the
same functionality.  But refactoring to fix that would be a bit invasive
and not something to back-patch.  I think what you did here is appropriate
as a minimal portability fix.  Maybe later somebody will look into
removing the duplication, as a HEAD-only improvement.

			regards, tom lane




view thread (5+ messages)  latest in thread

Message-ID: <9303.1519861047@sss.pgh.pa.us>
Permalink:  ../9303.1519861047@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/9303.1519861047@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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, michael@paquier.xyz, ro@CeBiTec.Uni-Bielefeld.DE
  Subject: Re: Conflicting declarations for b64_encode etc. on Solaris 11.4 Beta
  In-Reply-To: <9303.1519861047@sss.pgh.pa.us>
  References: <ydd372wk28h.fsf@CeBiTec.Uni-Bielefeld.DE> <20180124015251.GA14001@paquier.xyz> <20180214060454.GA4544@paquier.xyz> <9303.1519861047@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