On 27.10.2011 19:18, Tom Lane wrote:
> So really what needs to be done here is to make ELSIF chains explicit in
> the parsetree representation, and handle them via looping not recursion
> at runtime. This will also make it a lot easier to do the grammar via
> left-recursion.
>
> So I'm going to go off and do that, but I wonder whether anyone thinks
> this is sufficiently important to back-patch.
This doesn't look like a bug to me, just an unoptimal implementation. So
-1 for backpatching.
-- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com