Andrew Hammond <drew(at)xyzzy(dot)dhs(dot)org> writes:
> [ problems with a recursive plpgsql function ]
Yeah, there are some known bugs there :-(. AFAICS this cannot be
fixed properly until we get around to doing the querytree restructuring
that I keep ranting about --- in particular, making a clean distinction
between plan tree and execution state.
regards, tom lane