Re: uuid-ossp (Re: [pgsql-packagers] Postgresapp 9.4 beta build ready)

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Christoph Berg <cb(at)df7cb(dot)de>, Sandeep Thakkar <sandeep(dot)thakkar(at)enterprisedb(dot)com>, Dave Page <dpage(at)postgresql(dot)org>, Jakob Egger <jakob(at)eggerapps(dot)at>, Palle Girgensohn <girgen(at)pingpong(dot)net>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: uuid-ossp (Re: [pgsql-packagers] Postgresapp 9.4 beta build ready)
Date: 2014-05-22 14:48:53
Message-ID: CA+TgmobkmFXXguUPfcxa62v7CqynK24SRSX1LCuN_+xoC=uyVg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sun, May 18, 2014 at 12:28 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> I was intending to draft something more self-contained to present to
> -hackers, but since this is where we're at ... the quoted material
> omits a couple of important points:
>
> (1) People had been working around uuid-ossp's issues on OS X by
> patching a "#define _XOPEN_SOURCE" into contrib/uuid-ossp/uuid-ossp.c.
> As of 9.4 this is no longer sufficient because we upgraded to autoconf
> 2.69, which uses stricter testing for include-file validity than older
> versions did. The test to see if uuid.h is available therefore fails,
> unless that #define is also patched into the configure script. In any
> case "#define _XOPEN_SOURCE" has enough potential implications that
> this doesn't seem like a very recommendable solution.
>
> (2) "Palle's patch" mentioned above can be seen here:
> http://svnweb.freebsd.org/ports/head/databases/postgresql93-server/files/patch-contrib-uuid?revision=348732&view=markup
> Basically it jacks up contrib/uuid-ossp and rolls the BSD uuid functions
> underneath. It looks like this is based on work by Andrew Gierth.
>
> So, having seen that proof-of-concept, I'm wondering if we shouldn't make
> an effort to support contrib/uuid-ossp with a choice of UUID libraries
> underneath it. There is a non-OSSP set of UUID library functions
> available on Linux ("libuuid" from util-linux-ng). I don't know whether
> that's at all compatible with the BSD functions, but even if it's not,
> presumably a shim for it wouldn't be much larger than the BSD patch.

Well, if you want to do the work, I'm fine with that. But if you want
to just shoot uuid-ossp in the head, I'm fine with that, too. As
Peter says, perfectly reasonable alternatives are available.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2014-05-22 15:07:51 Re: uuid-ossp (Re: [pgsql-packagers] Postgresapp 9.4 beta build ready)
Previous Message Tom Lane 2014-05-22 13:58:46 Re: pg_upgrade fails: Mismatch of relation OID in database 8.4 -> 9.3