Re: "AS" by the syntax of table reference.(8.4 proposal)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Gregory Stark <stark(at)enterprisedb(dot)com>
Cc: "Hiroshi Saito" <z-saito(at)guitar(dot)ocn(dot)ne(dot)jp>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: "AS" by the syntax of table reference.(8.4 proposal)
Date: 2008-02-09 00:16:33
Message-ID: 9024.1202516193@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Gregory Stark <stark(at)enterprisedb(dot)com> writes:
> But yeah, c_expr isn't enough. We really need {a,b}_expr sans postfix
> expressions.

How's that going to help? As long as postfix operators exist at all,

SELECT a + b, ...

is going to be ambiguous, and no amount of grammar magic changes that.
We could force the parser into using one interpretation or the other,
but it would still be wrong for some folks.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Hiroshi Saito 2008-02-09 00:54:28 Re: "AS" by the syntax of table reference.(8.4 proposal)
Previous Message Gregory Stark 2008-02-08 22:15:55 Re: "AS" by the syntax of table reference.(8.4 proposal)