Frank Miles <fpm(at)u(dot)washington(dot)edu> writes:
> The simple recursive function:
> [ doesn't work ]
Hmm. In development sources I get
regression=# SELECT testRecurse(4,3);
NOTICE: Error occurred while executing PL/pgSQL function testrecurse
NOTICE: line 7 at assignment
ERROR: MemoryContextAlloc: invalid request size 2139062147
Looks like you have found a real bug, but I don't know what it is yet...
regards, tom lane