Re: parser dilemma

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: parser dilemma
Дата
Msg-id 20070419210449.GA31116@svana.org
обсуждение исходный текст
Ответ на parser dilemma  (Zoltan Boszormenyi <zb@cybertec.at>)
Ответы Re: parser dilemma  (Zoltan Boszormenyi <zb@cybertec.at>)
Список pgsql-hackers
On Thu, Apr 19, 2007 at 11:19:40AM +0200, Zoltan Boszormenyi wrote:
> >The problem comes from cases like
> >
> >    colname coltype DEFAULT 5! GENERATED ...
> >
> >Since b_expr allows postfix operators, it takes one more token of
> >lookahead than we have to tell if the default expression is "5!"
> >or "5!GENERATED ...".

ISTM that as long as:
colname coltype DEFAULT (5!) GENERATED ...

works I don't see why it would be a problem to require the parentheses
in this case. Postfis operators are not going to be that common here I
think.

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

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

Предыдущее
От: "Florian G. Pflug"
Дата:
Сообщение: [PATCH] A crash and subsequent recovery of the master can cause the slave to get out-of-sync
Следующее
От: "Gustavo Tonini"
Дата:
Сообщение: Fragmentation project