[SQL] Recusrive Functions in 7.0.3

2001-02-12 Thread mark proctor
If I remove the line calling PERFORM it works without problems moving the children node for the passed integer into test and then exiting. I can then repeat the process going through the output to test iteratively and do not have any problems. However if I put the PERFORM line back in to create

Re: [SQL] Recusrive Functions in 7.0.3

2001-02-09 Thread Tom Lane
<[EMAIL PROTECTED]> writes: > Are recursive functions allowed in in 7.0.3 Sure. play=> create function myfactorial(int) returns int as ' play'> begin play'> if $1 > 1 then play'> return $1 * myfactorial($1 - 1); play'> end if; play'> return $1; play'> end;' language 'plpgsql'; CREATE p

[SQL] Recusrive Functions in 7.0.3

2001-02-09 Thread plpgsql
Are recursive functions allowed in in 7.0.3 as I seem to be unable to get them to work in plpgsql, it just freezes and I have to do ctrl-alt-c. ie calling the same function name from within some form of loop, possible to 4 or 5 levels? Also is it possible to output any debugging info, all I rea