X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id DCE15D8579 for ; Tue, 6 Sep 2005 18:11:55 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 84882-08 for ; Tue, 6 Sep 2005 21:11:51 +0000 (GMT) Received: from redivi.com (redivi.com [64.207.133.54]) by svr1.postgresql.org (Postfix) with ESMTP id AA858D84F1 for ; Tue, 6 Sep 2005 18:11:51 -0300 (ADT) Received: from [72.1.150.252] (helo=[192.168.0.21]) by redivi.com with esmtpsa (TLSv1:RC4-SHA:128) (Exim 4.43) id 1ECkjR-0000fj-3p; Tue, 06 Sep 2005 14:11:54 -0700 In-Reply-To: <20050906211613.GB26851@granicus.if.org> References: <20050906135057.GA24136@granicus.if.org> <20050906144930.GA27641@mark.mielke.cc> <200509061002.43803.josh@agliodbs.com> <36e6829205090612575b954f38@mail.gmail.com> <20050906211613.GB26851@granicus.if.org> Mime-Version: 1.0 (Apple Message framework v734) Message-Id: <5033E692-1E9E-425B-A807-64BF7F4EB3F1@redivi.com> Cc: pgsql-hackers@postgresql.org From: Bob Ippolito Date: Tue, 6 Sep 2005 14:11:45 -0700 To: nathan wagner X-Mailer: Apple Mail (2.734) X-SA-Exim-Connect-IP: 72.1.150.252 X-SA-Exim-Mail-From: bob@redivi.com Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: uuid type for postgres X-SA-Exim-Version: 4.1+cvs (built Mon, 23 Aug 2004 08:44:05 -0700) X-SA-Exim-Scanned: Yes (on redivi.com) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.029 required=5 tests=[AWL=0.029] X-Spam-Level: X-Archive-Number: 200509/280 X-Sequence-Number: 72677 On Sep 6, 2005, at 2:16 PM, nathan wagner wrote: > On Tue, Sep 06, 2005 at 03:57:55PM -0400, jonah.harris@gmail.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 (). 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