From: | Fernando Nasser <fnasser(at)redhat(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Hiroshi Inoue <Inoue(at)tpf(dot)co(dot)jp>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: What's the CURRENT schema ? |
Date: | 2002-04-09 00:35:54 |
Message-ID: | 3CB2376A.B6DFF086@redhat.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Tom Lane wrote:
>
> "Hiroshi Inoue" <Inoue(at)tpf(dot)co(dot)jp> writes:
> > However I can see the following at 5.4 Names and Identifiers
> > 11) If a <schema qualified name> does not contain a <schema name>, then
> > Case:
> > a) If the <schema qualified name> is contained in a <schema
> > definition>,
> > then the <schema name> that is specified or implicit in the <schema
> > definition>
> > is implicit.
>
> Yes. Fernando, our existing CREATE SCHEMA command does not get this
> right for references from views to tables, does it? It seems to me that
> to get compliant behavior, we'll need to temporarily push the new schema
> onto the front of the namespace search path while parsing view
> definitions inside CREATE SCHEMA.
>
Correct. It only takes care of proper setting/checking the schema name
for the view (as is done for tables) that are being created. Doing as
you suggest would be nice (similar to what we do with the authid).
BTW, I think have to properly fill/check the schema when the grant
objects
are tables/views (I am not sure how functions will be handled).
I will send a patch in later today or tomorrow, unless you want to do
it differently. I prefer to do in in the parser because I can issue
and error if a grant is for something that is not an object in the
schema being created.
Regards,
Fernando
--
Fernando Nasser
Red Hat Canada Ltd. E-Mail: fnasser(at)redhat(dot)com
2323 Yonge Street, Suite #300
Toronto, Ontario M4P 2C9
From | Date | Subject | |
---|---|---|---|
Next Message | Hiroshi Inoue | 2002-04-09 00:44:01 | Re: timeout implementation issues |
Previous Message | Bruce Momjian | 2002-04-09 00:35:48 | Re: timeout implementation issues |