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 56EFCD7BD3 for ; Wed, 7 Sep 2005 13:44:27 -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 81265-06 for ; Wed, 7 Sep 2005 16:44:07 +0000 (GMT) Received: from davinci.ethosmedia.com (server227.ethosmedia.com [209.128.84.227]) by svr1.postgresql.org (Postfix) with ESMTP id CDEAED781C for ; Wed, 7 Sep 2005 13:44:07 -0300 (ADT) X-EthosMedia-Virus-Scanned: no infections found Received: from [63.195.55.98] (account josh@agliodbs.com HELO spooky) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.1.8) with ESMTP id 8053392; Wed, 07 Sep 2005 09:46:27 -0700 From: Josh Berkus Organization: Aglio Database Solutions To: pgsql-hackers@postgresql.org Subject: Re: uuid type for postgres Date: Wed, 7 Sep 2005 09:45:17 -0700 User-Agent: KMail/1.8 Cc: nathan wagner References: <20050906135057.GA24136@granicus.if.org> <7CDBCE29-55BE-4EE3-8868-F50DB1E914F6@refractions.net> <20050907051508.GA3572@granicus.if.org> In-Reply-To: <20050907051508.GA3572@granicus.if.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200509070945.17916.josh@agliodbs.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.011 required=5 tests=[AWL=0.011] X-Spam-Level: X-Archive-Number: 200509/331 X-Sequence-Number: 72728 Nathan, > > - linking against libuuid is fine for a contrib/ extension, but no > > good for a built-in type. A real uuid would have to do a proper > > independent implementation of uuid creation within pgsql. > > Why? I think the issue is portability. Remember that this type needs to work on Windows as well as all POSIX platforms and AIX. > I'm not sure what the default build instructions are, but i've got > the following on my linux box... > Quite a list. I wonder what readline is doing there. Readline is for PSQL command completion and history. As for the rest, they are *optional* modules that apparently your RPM builder chose to include; I build from source and my only dependencies are bison, flex, gcc and perl. > It would appear that linking against libraries is just fine, I don't > see that uuid is any different. Is it portable to all platforms we support? How does it generate its machine identifier? One of the differences between an add-in and core code is support for all PostgreSQL platforms. -- Josh Berkus Aglio Database Solutions San Francisco