Re: uuid type for postgres

From: Bob Ippolito <bob(at)redivi(dot)com>
To: nathan wagner <nw(at)hydaspes(dot)if(dot)org>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: uuid type for postgres
Date: 2005-09-06 21:11:45
Message-ID: 5033E692-1E9E-425B-A807-64BF7F4EB3F1@redivi.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-sql


On Sep 6, 2005, at 2:16 PM, nathan wagner wrote:

> On Tue, Sep 06, 2005 at 03:57:55PM -0400, jonah(dot)harris(at)gmail(dot)com
> wrote:
>
>> I agree with Josh on the UUID type, it gets abused far too often
>>
>
> Out of curiosity, how does it get abused? It doesn't seem to me
> that it would be any more prone to abuse than any other type.
>
>
>> and (IMHO) isn't widely enough used to belong in the core.
>>
>
> Seems like a self-fulfilling cycle. There isn't one in core
> or contrib (pguuid is not in contrib, IIRC), and so one doesn't
> get used. Since no one uses one, it's not in core or contrib.
>
>
>> Couldn't you just fix the
>> problem in pguuid rather than write a whole new type?
>>
>
> Not sure which you you're addressing here, but I can't fix the license
> problem. Nor can I readily fix the lack of a mac ioctl() to get
> the hardware mac address.

It's not that hard to get a MAC address or serial number out of a
Mac, the problem is I'm not going to bother writing that code for a
GPL extension to PostgreSQL. There's a better way, anyhow. Darwin
ships with UUID parse/generate/etc functions in its Libc (<uuid/
uuid.h>).

FWIW, that code (the Theodore Ts'o UUID implementation) looks to be
suitably licensed for PostgreSQL, and it actually it appears that
someone has already written a PostgreSQL UUID type using this it...
which is unfortunately LGPL'ed (why?!).

-bob

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message nathan wagner 2005-09-06 21:16:13 Re: uuid type for postgres
Previous Message Rod Taylor 2005-09-06 21:09:33 Re: PITR on different hardware

Browse pgsql-sql by date

  From Date Subject
Next Message nathan wagner 2005-09-06 21:16:13 Re: uuid type for postgres
Previous Message David Fetter 2005-09-06 20:49:28 Re: uuid type for postgres