Re: Shorthand column labels (SELECT col1 foo, ...) vs (SELECT col1 AS foo, ...) - Mailing list pgsql-sql

From Ken Johanson
Subject Re: Shorthand column labels (SELECT col1 foo, ...) vs (SELECT col1 AS foo, ...)
Date
Msg-id 4785CBE9.6000108@kensystem.com
Whole thread Raw
In response to Re: Shorthand column labels (SELECT col1 foo, ...) vs (SELECT col1 AS foo, ...)  (Paul Lambert <plengada@optusnet.com.au>)
Responses Re: Shorthand column labels (SELECT col1 foo, ...) vs (SELECT col1 AS foo, ...)  (Paul Lambert <plengada@optusnet.com.au>)
List pgsql-sql
Paul Lambert wrote:
> Ken Johanson wrote:
>> I notice PG doesn't allow shorthand column labels -- it requires the 
>> 'AS' operand.
>>
>> SELECT col1 foo, ...; -> ERROR: syntax error at or near "foo"
>
> Briefly discussed a couple of weeks ago.
> 
> See http://archives.postgresql.org/pgsql-general/2008-01/msg00089.php
> 


Interesting thread(s)!

What I didn't see discussed was the possibility of making a server 
and/or session option, where we could elect to turn-off the old behavior 
(PG specific behavior) and enable the standard/shorthand syntax. Users 
need a migration path.

I personally cant ever see using those PGisms/features and would choose 
to enable the standard mode. I think I'd have fewer compatibility problems.

Ken




pgsql-sql by date:

Previous
From: Paul Lambert
Date:
Subject: Re: Shorthand column labels (SELECT col1 foo, ...) vs (SELECT col1 AS foo, ...)
Next
From: Paul Lambert
Date:
Subject: Re: Shorthand column labels (SELECT col1 foo, ...) vs (SELECT col1 AS foo, ...)