Re: Operators and schemas

From: "Dann Corbit" <DCorbit(at)connx(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "Peter Eisentraut" <peter_e(at)gmx(dot)net>
Cc: "Fernando Nasser" <fnasser(at)redhat(dot)com>, <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Operators and schemas
Date: 2002-04-16 23:07:54
Message-ID: D90A5A6C612A39408103E6ECDD77B82920CD5F@voyager.corporate.connx.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

-----Original Message-----
From: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us]
Sent: Tuesday, April 16, 2002 3:58 PM
To: Peter Eisentraut
Cc: Fernando Nasser; pgsql-hackers(at)postgresql(dot)org
Subject: Re: [HACKERS] Operators and schemas

Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> I can hardly believe that we want to implement this just to be able to
> check off a few boxes on the SQL-compliance test. Once you have the
> ability to use a fixed list of statements in this context it should be
> easy to allow a more or less arbitrary list. Especially if they all
start
> with the same key word it should be possible to parse this.

It's not the "start" part that creates the problem, so much as the "end"
part. What we found was that we were having to reserve secondary
keywords. CREATE is now fully reserved, which it was not in 7.2,
and that alone doesn't bother me. But AUTHORIZATION and GRANT are
more reserved than they were before, too, and it'll get worse the
more statements we insist on accepting inside CREATE SCHEMA.

AFAICS, embedding statements inside CREATE SCHEMA adds absolutely zero
functionality; you can just as easily execute them separately. Do we
really want to push a bunch more keywords into full-reserved status
(and doubtless break some existing table definitions thereby) just
to check off a box that isn't even in the SQL compliance test?

To the extent that we can allow stuff in CREATE SCHEMA without adding
more reserved words, it's fine with me. But I question having to add
reserved words to do it.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
If the alternative is to make a permanent fork in the road that leads
away from ANSI compiliance, then it is a very, very bad decision not
to put in the new keywords. Every week that passes by will make
correcting the problem become more and more expensive.

IMO-YMMV.
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Browse pgsql-hackers by date

  From Date Subject
Next Message Richard Tucker 2002-04-16 23:14:28 Re: Firebird 1.0 released
Previous Message Tom Lane 2002-04-16 22:58:22 Re: Operators and schemas