Re: parser dilemma - Mailing list pgsql-hackers

From Martijn van Oosterhout
Subject Re: parser dilemma
Date
Msg-id 20070419210449.GA31116@svana.org
Whole thread Raw
In response to parser dilemma  (Zoltan Boszormenyi <zb@cybertec.at>)
Responses Re: parser dilemma  (Zoltan Boszormenyi <zb@cybertec.at>)
List 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 by date:

Previous
From: "Florian G. Pflug"
Date:
Subject: [PATCH] A crash and subsequent recovery of the master can cause the slave to get out-of-sync
Next
From: "Gustavo Tonini"
Date:
Subject: Fragmentation project