Re: Mandatory AS keyword in SELECT statements

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Martijn van Oosterhout <kleptog(at)svana(dot)org>
Cc: vincent(dot)moreau(at)adeoservices(dot)com, pgsql-general(at)postgresql(dot)org
Subject: Re: Mandatory AS keyword in SELECT statements
Date: 2008-01-04 15:58:40
Message-ID: 200801041558.m04Fwei11568@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Martijn van Oosterhout wrote:
-- Start of PGP signed section.
> On Fri, Jan 04, 2008 at 09:31:41AM -0500, Bruce Momjian wrote:
> > Unfortunately, this is on our TODO list as something we are not planning
> > to do:
> >
> > * Allow AS in "SELECT col AS label" to be optional (not wanted)
> >
> > Because we support postfix operators, it isn't possible to make AS
> > optional and continue to use bison.
>
> For reference, the problematic examples are:
>
> SELECT a + b; -- Is this (a +) aliased to "b", or (a+b) with no alias
> SELECT 'foo'::character varying -- Is "varying" an alias or part of the type name?
>
> See this thread:
> http://archives.postgresql.org/pgsql-hackers/2003-04/msg00436.php

Interesting. I have added that URL to the TODO list.

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://postgres.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2008-01-04 15:59:07 Re: ERROR: catalog is missing 9 attribute(s) for relid 10297
Previous Message Oleg Bartunov 2008-01-04 15:54:32 Re: tsearch2 headline options