Re: tsearch in core patch, for inclusion - Mailing list pgsql-hackers

From Tom Lane
Subject Re: tsearch in core patch, for inclusion
Date
Msg-id 13525.1172070585@sss.pgh.pa.us
Whole thread Raw
In response to Re: tsearch in core patch, for inclusion  ("Florian G. Pflug" <fgp@phlo.org>)
List pgsql-hackers
"Florian G. Pflug" <fgp@phlo.org> writes:
> Markus Schiltknecht wrote:
>>> Are there any ongoing efforts to rewrite the parser (i.e. using 
>>> another algorithm, like a recursive descent parser)?

>> Why would you want to do that?

> Last, but not least, the C and C++ syntax is basically set in stone - At
> least now the g++ supports nearly all (or all? don't know) of the C++ 
> standard. So it doesn't really matter if changes to the parse are a bit 
> more work, because the rarely happen. Postgres seems to add new features 
> that change the grammar with every release (with is a good thing!).

Yeah.  I think it would be a pretty bad idea for us to go over to a
handwritten parser: not only greater implementation effort for grammar
changes, but greater risk of introducing bugs.  Bison tells you about it
when you've written something ambiguous ...
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Florian G. Pflug"
Date:
Subject: Re: New feature request: FlashBack Query
Next
From: "Jonah H. Harris"
Date:
Subject: Status of Hierarchical Queries