Re: Modifying and solidifying contrib

From: Richard Huxton <dev(at)archonet(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>, Michael Glaesemann <grzm(at)seespotcode(dot)net>, David Fetter <david(at)fetter(dot)org>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Modifying and solidifying contrib
Date: 2007-01-29 23:34:50
Message-ID: 45BE849A.7070002@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:
> Richard Huxton <dev(at)archonet(dot)com> writes:
>> 1. Add a new column for all system objects, separate from schema:
>> "package".
>
> Wouldn't it be a whole lot easier just to drive it off schema, rather
> than inventing duplicative parallel infrastructure? That is, say that a
> package has one or more schemas and what it "owns" is whatever is in
> those schemas. This lets you, for example, use schema permissions to
> manage access to the package.

Four differences:
1. You couldn't have a tsearch package with functions in public. At
least not without some IMPORT TSEARCH.foo() INTO public
2. You can't easily disable access to a whole package if it's spread
over multiple schemas.
3. You can't determine what package various objects belong to - is this
"stopwords" table from tsearch2 or ArchonetSearch17?
4. You can't have one package depending upon another (webstats v2.1
depends on internet_addr v2.3).

With the current search_path functionality I think it's important the
package names are separate. I think I'm right in saying there are two
packaging schemes out there - you either have a single hierarchy
(Perl/Java) or something parallel (at 90 degrees to?) to an existing
setup (RPM/deb). I think our search_path means we're dealing with
something more like a Linux packaging setup.

--
Richard Huxton
Archonet Ltd

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2007-01-30 00:03:29 Re: Modifying and solidifying contrib
Previous Message Tom Lane 2007-01-29 23:10:57 Re: Modifying and solidifying contrib