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
On Oct 27, 2011, at 9:18 AM, Tom Lane wrote:
> So I'm going to go off and do that, but I wonder whether anyone thinks
> this is sufficiently important to back-patch. I'm inclined to think
> that back-patching isn't a good idea, because changing the
> representation of PLpgSQL_stmt_if will break (
Some off-list discussion found that the cause of this problem:
http://archives.postgresql.org/pgsql-general/2011-10/msg00879.php
was an attempt to write a plpgsql IF-ELSIF-ELSIF-ELSIF-ELSIF-...-ELSE
statement with five thousand branches. Putting aside the wisdom of
doing that, it seems like the pa