Re: uuid_hash declaration - Mailing list pgsql-general

From Mel Flynn
Subject Re: uuid_hash declaration
Date
Msg-id 200907130800.34506.mel.flynn+pgsql@mailing.thruhere.net
Whole thread Raw
In response to Re: uuid_hash declaration  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
On Monday 13 July 2009 06:54:54 Tom Lane wrote:
> Alvaro Herrera <alvherre@commandprompt.com> writes:
> > If that's the problem, my 2c is that uuid_hash is too generic a name to
> > export and we should change ours.
>
> Too late for existing releases (since it would force initdb to fix the
> pg_proc entry).  We could change it in HEAD, but how much will that
> really help?

Well, atm I'm looking for what should be in #else clause or elsewhere in the
code if I did something like:
#ifndef HAVE_UUID_BSD
extern Datum uuid_hash(PG_FUNCTION_ARGS);
#else
extern Datum uuid_hash2(PG_FUNCTION_ARGS);
#endif

that would still make the uuid_hash available in the SQL language. I'd be
happy to write some migration utilities, once I get more familiar with the
code. Right now, I'm just trying to make a drop-in replacement for the ossp-
uuid module.
--
Mel

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: PostgreSQL 8.4 packages for Fedora 11?
Next
From: Tim Landscheidt
Date:
Subject: Re: PostgreSQL 8.4 packages for Fedora 11?