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

On Tue, Sep 06, 2005 at 08:40:08PM -0700, pramsey@refractions.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



view thread (51+ messages)  latest in thread

Message-ID: <20050907051508.GA3572@granicus.if.org>
Permalink:  ../20050907051508.GA3572@granicus.if.org/
Also on:    postgresql.org/message-id/20050907051508.GA3572@granicus.if.org

 · 

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: nw@hydaspes.if.org, pgsql-hackers@postgresql.org
  Subject: Re: uuid type for postgres
  In-Reply-To: <20050907051508.GA3572@granicus.if.org>

* 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