Re: "AS" by the syntax of table reference.(8.4 proposal) - Mailing list pgsql-hackers

From Tom Lane
Subject Re: "AS" by the syntax of table reference.(8.4 proposal)
Date
Msg-id 9024.1202516193@sss.pgh.pa.us
Whole thread Raw
In response to Re: "AS" by the syntax of table reference.(8.4 proposal)  (Gregory Stark <stark@enterprisedb.com>)
Responses Re: "AS" by the syntax of table reference.(8.4 proposal)  (Gregory Stark <stark@enterprisedb.com>)
List pgsql-hackers
Gregory Stark <stark@enterprisedb.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


pgsql-hackers by date:

Previous
From: Gregory Stark
Date:
Subject: Re: "AS" by the syntax of table reference.(8.4 proposal)
Next
From: "Hiroshi Saito"
Date:
Subject: Re: "AS" by the syntax of table reference.(8.4 proposal)