pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: pgsql-hackers@postgresql.org
Cc: nathan wagner <nw@hydaspes.if.org>
Subject: Re: uuid type for postgres
Date: Wed, 7 Sep 2005 09:45:17 -0700
Message-ID: <200509070945.17916.josh@agliodbs.com> (raw)
In-Reply-To: <20050907051508.GA3572@granicus.if.org>
References: <20050906135057.GA24136@granicus.if.org>
	<7CDBCE29-55BE-4EE3-8868-F50DB1E914F6@refractions.net>
	<20050907051508.GA3572@granicus.if.org>

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



view thread (51+ messages)  latest in thread

Message-ID: <200509070945.17916.josh@agliodbs.com>
Permalink:  ../200509070945.17916.josh@agliodbs.com/
Also on:    postgresql.org/message-id/200509070945.17916.josh@agliodbs.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: josh@agliodbs.com, pgsql-hackers@postgresql.org, nw@hydaspes.if.org
  Subject: Re: uuid type for postgres
  In-Reply-To: <200509070945.17916.josh@agliodbs.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox