Re: uuid type for postgres

From: nathan wagner <nw(at)hydaspes(dot)if(dot)org>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: uuid type for postgres
Date: 2005-09-07 05:15:08
Message-ID: 20050907051508.GA3572@granicus.if.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-sql

On Tue, Sep 06, 2005 at 08:40:08PM -0700, pramsey(at)refractions(dot)net wrote:

> - 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'm not sure what the default build instructions are, but i've got
the following on my linux box...

granicus:~% ldd /usr/bin/postgres
linux-gate.so.1 => (0x00368000)
libpam.so.0 => /lib/libpam.so.0 (0x00311000)
libssl.so.5 => /lib/libssl.so.5 (0x009b3000)
libcrypto.so.5 => /lib/libcrypto.so.5 (0x00507000)
libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x003ab000)
libz.so.1 => /usr/lib/libz.so.1 (0x00c55000)
libreadline.so.5 => /usr/lib/libreadline.so.5 (0x00c6a000)
libtermcap.so.2 => /lib/libtermcap.so.2 (0x00dfa000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x009f7000)
libresolv.so.2 => /lib/libresolv.so.2 (0x0014e000)
libnsl.so.1 => /lib/libnsl.so.1 (0x00a62000)
libdl.so.2 => /lib/libdl.so.2 (0x00c4f000)
libm.so.6 => /lib/libm.so.6 (0x00c29000)
libc.so.6 => /lib/libc.so.6 (0x00afd000)
libcom_err.so.2 => /lib/libcom_err.so.2 (0x0038e000)
libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0x0099a000)
libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x00483000)
/lib/ld-linux.so.2 (0x00adf000)
libkrb5support.so.0 => /usr/lib/libkrb5support.so.0 (0x0041f000)

Quite a list. I wonder what readline is doing there.

It would appear that linking against libraries is just fine, I don't
see that uuid is any different.

> - we cannot snarf libuuid code, it is LGPL (though perhaps the author
> would re-license. if that is the *only* objection, it is well worth
> asking)

Not sure what uuid library you were using, but the one i used
is not LGPL. I posted earlier the copyright and license portion of
the readme. No relicensing would be necessary.

--
Nathan Wagner

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jim C. Nasby 2005-09-07 05:31:01 Re: Remove xmin and cmin from frozen tuples
Previous Message Oleg Bartunov 2005-09-07 04:41:08 Re: need info about extensibility in other databases

Browse pgsql-sql by date

  From Date Subject
Next Message Michael Fuhr 2005-09-07 06:26:34 Re: AGE function
Previous Message Louise Catherine 2005-09-07 05:05:06 AGE function