Skip site navigation (1) Skip section navigation (2)

Re: [HACKERS] parser dilemma

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Zoltan Boszormenyi <zb(at)cybertec(dot)at>
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>, Martijn van Oosterhout <kleptog(at)svana(dot)org>, List pgsql-patches <pgsql-patches(at)postgresql(dot)org>, Alvaro Herrera <alvherre(at)commandprompt(dot)com>, "Florian G(dot) Pflug" <fgp(at)phlo(dot)org>, Bruce Momjian <bruce(at)momjian(dot)us>
Subject: Re: [HACKERS] parser dilemma
Date: 2007-04-21 08:06:39
Message-ID: 20845.1177142799@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-patches
Zoltan Boszormenyi <zb(at)cybertec(dot)at> writes:
> Andrew Dunstan rta:
>> Zoltan Boszormenyi wrote:
>>> On the other hand, marking GENERATED as %right
>>> solves this issue. I hope it's an acceptable solution.
>> 
>> If anything I should have thought it would be marked %nonassoc.

> That works, too.

[ a bit alarmed... ]  This is only going to be an acceptable solution
if you can explain *exactly why* it works.  The general story with
associativity/precedence declarations is that you are making bison
resolve ambiguous situations in particular ways.  If you don't have a
100% clear understanding of what the ambiguity is and why this is the
right way to resolve it, you are probably creating a bigger problem.

			regards, tom lane

In response to

Responses

pgsql-hackers by date

Next:From: Zoltan BoszormenyiDate: 2007-04-21 08:49:46
Subject: Re: [HACKERS] parser dilemma
Previous:From: Zoltan BoszormenyiDate: 2007-04-21 07:48:52
Subject: Re: [HACKERS] parser dilemma

pgsql-patches by date

Next:From: Zoltan BoszormenyiDate: 2007-04-21 08:49:46
Subject: Re: [HACKERS] parser dilemma
Previous:From: Zoltan BoszormenyiDate: 2007-04-21 07:48:52
Subject: Re: [HACKERS] parser dilemma

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group