Re: Oracle Style packages on postgres - Mailing list pgsql-hackers

From Andrew - Supernews
Subject Re: Oracle Style packages on postgres
Date
Msg-id slrnd86tld.1c8o.andrew+nonews@trinity.supernews.net
Whole thread Raw
In response to Re: Oracle Style packages on postgres  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
On 2005-05-11, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> There are a number of issues that would have to be solved to make this
> actually work, but on first glance it seems like a possibly attractive
> idea.
>
> Besides, I can't wait to hear the moans from the newsysviews crew when
> the implications of this sink in ;-) ;-)

I'm not too worried; how many other things assume that schema.tablename
uniquely identifies a table? This is at least as large a change as
adding schemas in the first place.

Obvious strategies include:
 - if only one additional nesting level is defined, add a "catalog"   column to match every "schema" column
 - if multiple levels are defined, add a "schema_path" column with an   array of names to match every "schema" column.

If schema.tablename becomes non-unique (because this feature was
implemented _and_ someone creates the same schema in different catalogs)
then anything that currently queries the catalogs, whether directly or
via pg_tables (or even information_schema if you allow more than one
additional level) is going to have issues.

-- 
Andrew, Supernews
http://www.supernews.com - individual and corporate NNTP services


pgsql-hackers by date:

Previous
From: "Marc G. Fournier"
Date:
Subject: Re: New Contrib Build?
Next
From: Tom Lane
Date:
Subject: Re: Views, views, views: Summary of Arguments