From: | Bernd Helmle <mailings(at)oopsware(dot)de> |
---|---|
To: | Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com> |
Cc: | PostgreSQL-Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Bug in CREATE VIEW grammar |
Date: | 2004-09-30 23:58:38 |
Message-ID: | B5B03085309A8D629099A1AC@sparkey.oopsware.intra |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
--On Donnerstag, September 30, 2004 16:32:48 -0700 Stephan Szabo
<sszabo(at)megazone(dot)bigpanda(dot)com> wrote:
> On Fri, 1 Oct 2004, Bernd Helmle wrote:
>
>> While having trouble extending the CREATE VIEW grammar i discovered this:
>>
>> bommel(at)[local]:yomama #= CREATE VIEW vtest as SELECT * from abteilung
>> WITH; CREATE VIEW
>
> I'm not sure what in particular you're getting at. Although technically
> WITH is a reserved word and as such shouldn't be usable as a correlation
> name for abteilung, we generally try to limit those restrictions whenever
> possible.
>
>
Hmm, okay, it wasn't clear to me that WITH is an allowed table alias name.
Looking in the unreserved keyword map in gram.y i see WITH there.
My current work is to extend the CREATE VIEW statement with the WITH [
CASCADE | LOCAL ] CHECK OPTION, so i wondered first, why WITH is not a
reserved word.
Thanks for your reply.
--
Bernd
From | Date | Subject | |
---|---|---|---|
Next Message | Jim C. Nasby | 2004-10-01 00:27:26 | Re: Reviving Time Travel (was Re: 'TID index') |
Previous Message | Stephan Szabo | 2004-09-30 23:32:48 | Re: Bug in CREATE VIEW grammar |