Re: LGPL

From: "John Hansen" <john(at)geeknet(dot)com(dot)au>
To: "Josh Berkus" <josh(at)agliodbs(dot)com>
Cc: <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: LGPL
Date: 2005-06-15 18:04:25
Message-ID: 5066E5A966339E42AA04BA10BA706AE50A934C@rodrick.geeknet.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Josh,

> Both of these would be fine as add-ins to be distributed *separately*
through
> pgFoundry or even the mirrors if they prove popular.
> Bundling them in unified distribution binaries with PostgreSQL would
be a
> significant problem.
>
> You see this in other projects all the time: "Requriements:
> ______, which is GPL and can be downloaded from __________ ."
> We've managed so far to avoid needing external libraries
> which are not standard on most POSIX platforms, and it would
> be nice to keep it that way instead of doing the "component
> easter egg hunt" (which users of Linux multimedia apps are
> familiar with).
>
> This means that you're unlikely to be able to use glib unless
> it becomes standard on POSIX platforms, and someone makes a
> Windows port. Out of curiosity, what did you want to use it *for*?

Ohh,. Just felt like a cleaner interface than ICU,....

> As for a URI type, I don't see the problem with doing that as
> a PostgreSQL add-in downloadable from PGFoundry. Given the
> variety of URI implementations, I'm not sure we'd want a
> single URI type as standard anyway.

That I don't know,.... Yet... However what I've come up with so far, has
proven quite useful.

Remember the all famous 'email' type?
This has the same functionality, if not better....

create table email_addresses (email_address text,uri uri);
insert into email_addresses (email_address) VALUES
('john(at)geeknet(dot)com(dot)au');
update email_addresses set uri = 'mailto:'||email_address::text; <--
could be a rule on insert!
select (uri).username,(uri).host from email_addresses ;
username | host
----------+----------------
john | geeknet.com.au
(1 row)

And here's the really funky bit:

select email_address = 'john(at)GeekNET(dot)com(dot)au' from email_addresses ;
?column?
----------
f
(1 row)

select uri = 'mailto:john(at)GeekNET(dot)com(dot)au'::text::uri from
email_addresses ;
?column?
----------
t
(1 row)

As it should, since email sent to the two email addresses would end up
in the same mailbox....
The same applies to other URI formats of course. It appears this uri
library is fully spec compliant.

> According to the FSF's junior licensing maven, building in a
> GPL data type or other plug-in would make *your instance* of
> PostgreSQL GPL, but so does PL/R and PostGIS, so that's
> nothing new. It just needs to be distributed separately.
>
> FYI, the reason the GPL "linking" issue is vague is that it
> depends on local copyright law, which varies from country to
> country and in the US from state to state. This is
> deliberate by the FSF because an agreement which depends on
> local copyright law is stronger in court than one which sets its own
> explicit terms. If anyone has nuts-and-bolts questions
> about GPL/LGPL
> issues, I have some friends at the FSF and can get answers
> from "the horse's mouth."
>

Thanks for the explanation....

> --
> Josh Berkus
> Aglio Database Solutions
> San Francisco
>
>

... John

Browse pgsql-hackers by date

  From Date Subject
Next Message Stefan Kaltenbrunner 2005-06-15 18:08:32 Re: Gist Recovery testing
Previous Message Marc G. Fournier 2005-06-15 17:56:39 max_fsm_pages >800k ... ?