Re: [GENERAL] Problem about pgsql's column alias

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: [GENERAL] Problem about pgsql's column alias
Дата
Msg-id Pine.LNX.4.44.0304141455000.1919-100000@peter.localdomain
обсуждение исходный текст
Ответы Re: [GENERAL] Problem about pgsql's column alias
Список pgsql-hackers
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



В списке pgsql-hackers по дате отправления:

Предыдущее
От: terr@terralogic.net
Дата:
Сообщение: Re: No merge sort?
Следующее
От: cbbrowne@cbbrowne.com
Дата:
Сообщение: Re: No merge sort?