AW: AW: Big 7.1 open items

Поиск
Список
Период
Сортировка
Искать

AW: AW: Big 7.1 open items

От:
Zeugswetter Andreas SB <ZeugswetterA@wien.spardat.at>
Дата:

> AFAIK,schema is independent from user in SQL92.
> So default_tablespace_per_user doesn't necessarily imply
> default_tablespace_per_schema.

Well, sombody must be interpreting this wrong, because 
in Informix and Oracle the schema corresponds to the owner
and they say they conform to ansi in this regard.
In both, a user can access other schemas or switch to another
schema, so in that sense you could say that the schema is 
independent of users.

> However SQL92 seems to have another hierarchy:
> 	cluster -> catalog -> schema -> object

I would say our "database" corresponds to "catalog" and 
"instance" corresponds to "cluster" in the SQL92 hierarchy.
Instance is probably a bad wording in respect to multiple
machine clusters where you can access all objects 
from every node.
Database was probably not used, because this is often used 
to describe the whole hierarchy.

> I couldn't find clear correspondense between PG's *database*
> and above hierarchy because we have no dot notation for
> objects currently.

This will definitely be a problem because of our current nested dot
interpretation towards functions taking one opaque or _class_type
argument.

Andreas

Re: AW: Big 7.1 open items

От:
"Ross J. Reedstrom" <reedstrm@rice.edu>
Дата:
On Wed, Jun 28, 2000 at 02:07:33PM +0200, Zeugswetter Andreas SB wrote:
> 
> > AFAIK,schema is independent from user in SQL92.
> > So default_tablespace_per_user doesn't necessarily imply
> > default_tablespace_per_schema.
> 
> Well, sombody must be interpreting this wrong, because 
> in Informix and Oracle the schema corresponds to the owner
> and they say they conform to ansi in this regard.

To quote from the SQL92 standard for CERATE SCHEMA:
         ::=             CREATE SCHEMA                [  ]               [ ... ]
         ::=                            | AUTHORIZATION              |  AUTHORIZATION 

        1) If  is not specified, then a  equal to            is implicit.
        2) If AUTHORIZATION  is not speci-           fied, then
           Case:
           a) If the  is contained in a  that             has a  specified, then an              equal to that  is implicit for the .
           b) Otherwise, an  equal to the SQL-             session  is implicit.

So, we see that the SQL92 default fora schema is the session username.

> In both, a user can access other schemas or switch to another
> schema, so in that sense you could say that the schema is 
> independent of users.

Not only in a sense, it is in fact.
> 
> This will definitely be a problem because of our current nested dot
> interpretation towards functions taking one opaque or _class_type
> argument.

Right. If we're going to support SQL92 dot notation (which I think we
should) we'll either need to lose the function notion completely, or
come up with some really clever hack about applying them in order.

Ross
-- 
Ross J. Reedstrom, Ph.D.,  
NSBRI Research Scientist/Programmer
Computer and Information Technology Institute
Rice University, 6100 S. Main St.,  Houston, TX 77005

RE: AW: Big 7.1 open items

От:
"Hiroshi Inoue" <Inoue@tpf.co.jp>
Дата:
> -----Original Message-----
> From: Zeugswetter Andreas SB
> 
> > AFAIK,schema is independent from user in SQL92.
> > So default_tablespace_per_user doesn't necessarily imply
> > default_tablespace_per_schema.
> 
> Well, sombody must be interpreting this wrong, because 
> in Informix and Oracle the schema corresponds to the owner
> and they say they conform to ansi in this regard.

Is there really a schema:user=1:1 limitation in SQL-92 ?
Though both SQL-86 and SQL-89 had the limitation
SQL-92 removed it AFAIK.

Regards.

Hiroshi Inoue

Re: AW: Big 7.1 open items

От:
"Ross J. Reedstrom" <reedstrm@rice.edu>
Дата:
On Thu, Jun 29, 2000 at 02:05:31AM +0900, Hiroshi Inoue wrote:
> 
> Is there really a schema:user=1:1 limitation in SQL-92 ?
> Though both SQL-86 and SQL-89 had the limitation
> SQL-92 removed it AFAIK.

See my other post. In SQL92, the username is the default schema name.

Ross
-- 
Ross J. Reedstrom, Ph.D.,  
NSBRI Research Scientist/Programmer
Computer and Information Technology Institute
Rice University, 6100 S. Main St.,  Houston, TX 77005

FAQ