pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ken Johanson <pg-user@kensystem.com>
To: Paul Lambert <plengada@optusnet.com.au>
Cc: pgsql-sql@postgresql.org
Subject: Re: Shorthand column labels (SELECT col1 foo, ...) vs (SELECT col1 AS foo, ...)
Date: Thu, 10 Jan 2008 00:40:25 -0700
Message-ID: <4785CBE9.6000108@kensystem.com> (raw)
In-Reply-To: <4785C744.6080406@optusnet.com.au>
References: <4785C50F.6010505@kensystem.com>
	<4785C744.6080406@optusnet.com.au>

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





view thread (4+ messages)  latest in thread

Message-ID: <4785CBE9.6000108@kensystem.com>
Permalink:  ../4785CBE9.6000108@kensystem.com/
Also on:    postgresql.org/message-id/4785CBE9.6000108@kensystem.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: pg-user@kensystem.com, plengada@optusnet.com.au
  Subject: Re: Shorthand column labels (SELECT col1 foo, ...) vs (SELECT col1 AS foo, ...)
  In-Reply-To: <4785CBE9.6000108@kensystem.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox