| From: | Ken Johanson <pg-user(at)kensystem(dot)com> |
|---|---|
| To: | Paul Lambert <plengada(at)optusnet(dot)com(dot)au> |
| Cc: | pgsql-sql(at)postgresql(dot)org |
| Subject: | Re: Shorthand column labels (SELECT col1 foo, ...) vs (SELECT col1 AS foo, ...) |
| Date: | 2008-01-10 07:40:25 |
| Message-ID: | 4785CBE9.6000108@kensystem.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Paul Lambert | 2008-01-10 08:04:04 | Re: Shorthand column labels (SELECT col1 foo, ...) vs (SELECT col1 AS foo, ...) |
| Previous Message | Paul Lambert | 2008-01-10 07:20:36 | Re: Shorthand column labels (SELECT col1 foo, ...) vs (SELECT col1 AS foo, ...) |