From: | Fernando Nasser <fnasser(at)redhat(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | lockhart(at)fourpalms(dot)org, Gavin Sherry <swm(at)linuxworld(dot)com(dot)au>, Kaare Rasmussen <kar(at)kakidata(dot)dk>, pgsql-patches(at)postgresql(dot)org |
Subject: | Re: [HACKERS] Updated TODO item |
Date: | 2002-02-25 14:46:05 |
Message-ID: | 3C7A4E2D.6160062F@redhat.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
Tom Lane wrote:
>
> Fernando Nasser <fnasser(at)redhat(dot)com> writes:
> > The syntax of the CREATE SCHEMA SQL standard command is
> > CREATE SCHEMA AUTHORIZATION userid
> > Shouldn't we be using
> > CREATE DATABASE AUTHORIZATION userid
> > to be consistent?
>
> Seems like a very weak analogy; there's no other similarities between
> the two command syntaxes, so why argue that this should be the same?
The analogy is not with the command -- it is with with the token
'userid'.
The key word prefix tells what that token is supposed to be, and that
is an <authorization-id>. THe key word AUTHORIZATION works like a sort
of an 'adjective'.
> Also, the semantics aren't the same --- for example, there's no a-priori
> assumption that a database owner owns everything within the database.
>
I thought you were arguing that neither would a schema (i.e., you wanted
objects in a schema to have different owners).
Anyway, that is not the point here. We have two commands that
create groups of database objects (our "database" is the SQL catalog)
and both specify who will own it. The CREATE DATABASE is implementation
defined and we can do whatever we want with it, but as we have a
standard
command that uses a syntax to specify the owner I think we should follow
it.
With the additional advantage that the '=' problem goes away and we
avoid
future shift/reduce problems in the parser as 'WITH' is already too
overloaded.
--
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 | Thomas Lockhart | 2002-02-25 15:05:20 | Re: Open magazine article on open source rdbms |
Previous Message | Dave Cramer | 2002-02-25 14:18:33 | Re: patch queue |
From | Date | Subject | |
---|---|---|---|
Next Message | Fernando Nasser | 2002-02-25 14:55:35 | Re: Fix command completion for CREATE TABEL ... AS |
Previous Message | Bernhard Herzog | 2002-02-25 11:15:26 | Re: Fix for non-blocking connections in libpq |