Tom Lane writes:
> AS is not optional in Postgres, and will never be so unless we choose to
> drop support for postfix operators, which I consider an unlikely choice.
Well, we could drop the support for postfix operators in aliasing clauses
that omit the AS. In fact, I got the following to work with no further
changes:
target_el: a_expr AS ColLabel | c_expr IDENT // new | a_expr | '*'
If we wanted more than IDENT, we would need to trade off some key words in
(few) other places, but it looks doable.
--
Peter Eisentraut peter_e@gmx.net