Re: Bug #545: Keyword USER not detected in CREATE VIEW - Mailing list pgsql-bugs

From Thomas Lockhart
Subject Re: Bug #545: Keyword USER not detected in CREATE VIEW
Date
Msg-id 3C2CDF25.5C7DC8C3@fourpalms.org
Whole thread Raw
In response to Bug #545: Keyword USER not detected in CREATE VIEW  (pgsql-bugs@postgresql.org)
Responses Re: Bug #545: Keyword USER not detected in CREATE VIEW  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
> >   avi=> create view z as select x as user from y;
> > My expected result: an error message in CREATE VIEW
> This is not a bug, it is intentional behavior.  "AS" names are not
> restricted to be non-reserved words.

Sure, but his point is that the resulting view has a column which is
named "user" and which is not directly accessible without using double
quotes.

I'm not sure that would qualify as a bug, but certainly is a gotcha...

                      - Thomas

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: Bug #545: Keyword USER not detected in CREATE VIEW
Next
From: Tom Lane
Date:
Subject: Re: Bug #545: Keyword USER not detected in CREATE VIEW