pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@postgresql.org
Subject: pgsql: Dodge a macro-name conflict with Perl.
Date: Thu, 19 Nov 2015 19:54:27 +0000
Message-ID: <E1ZzVHn-00034m-DH@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Dodge a macro-name conflict with Perl.

Some versions of Perl export a macro named HS_KEY.  This creates a
conflict in contrib/hstore_plperl against hstore's macro of the same
name.  The most future-proof solution seems to be to rename our macro;
I chose HSTORE_KEY.  For consistency, rename HS_VAL and related macros
similarly.

Back-patch to 9.5.  contrib/hstore_plperl doesn't exist before that
so there is no need to worry about the conflict in older releases.

Per reports from Marco Atzeri and Mike Blackwell.

Branch
------
REL9_5_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/8ee1a776a0c69cbd33b88f1210d1b94dfda18128

Modified Files
--------------
contrib/hstore/hstore.h                   |   10 +-
contrib/hstore/hstore_compat.c            |    2 +-
contrib/hstore/hstore_gin.c               |    8 +-
contrib/hstore/hstore_gist.c              |   16 ++--
contrib/hstore/hstore_io.c                |   83 ++++++++--------
contrib/hstore/hstore_op.c                |  148 +++++++++++++++--------------
contrib/hstore_plperl/hstore_plperl.c     |    7 +-
contrib/hstore_plpython/hstore_plpython.c |    8 +-
8 files changed, 153 insertions(+), 129 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


view thread (2+ messages)

Message-ID: <E1ZzVHn-00034m-DH@gemulon.postgresql.org>
Permalink:  ../E1ZzVHn-00034m-DH@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ZzVHn-00034m-DH@gemulon.postgresql.org

 · 

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
  Subject: Re: pgsql: Dodge a macro-name conflict with Perl.
  In-Reply-To: <E1ZzVHn-00034m-DH@gemulon.postgresql.org>
  References: <E1ZzVHn-00034m-DH@gemulon.postgresql.org>

* 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