Alex Hunsaker <badalex(at)gmail(dot)com> writes:
> ISTM the easiest and safest fix would be to not allow recursive plperl
> creations. You could still call plperl functions within functions,
> just not if they are not defined. This limitation really blows
That's the understatement of the month. What you're saying, IIUC, is
that if function A calls function B via a SPI command, and B wasn't
executed previously in the current session, it would fail? Seems
entirely unacceptable.
regards, tom lane