Re: Why can't I ......... - Mailing list pgsql-sql

From Tom Lane
Subject Re: Why can't I .........
Date
Msg-id 8886.997208996@sss.pgh.pa.us
Whole thread Raw
In response to Re: Why can't I .........  ("Josh Berkus" <josh@agliodbs.com>)
List pgsql-sql
"Josh Berkus" <josh@agliodbs.com> writes:
>> -- use labels to name columns in this way
>> 
>> ... select col1 userid, col2 name from ...  (instead of using AS)

> Because AS is the ANSI SQL 92 standard.  And we like standards.

Actually, SQL92 says that AS is optional.  However, Postgres contains a
lot of extensions to SQL92, and some of them produce parse ambiguities
if AS is optional.  So we require it.  This isn't going to change, as
it would require ripping out a lot of useful stuff.
        regards, tom lane


pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: Are circular REFERENCES possible ?
Next
From: Jan Wieck
Date:
Subject: Re: Are circular REFERENCES possible ?