Re: plperl: Undefined subroutine &main::mksafefunc

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: plperl: Undefined subroutine &main::mksafefunc
Date: 2004-11-21 08:32:12
Message-ID: 20041121083212.GA67123@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Sun, Nov 21, 2004 at 03:16:36AM -0500, Tom Lane wrote:
> Michael Fuhr <mike(at)fuhr(dot)org> writes:
> > If spi_exec_query() fails in a plperl function, subsequent calls
> > to plperl or plperlu functions that hadn't been previously loaded
> > will fail with "Undefined subroutine &main::mksafefunc".
>
> Yeah ... there are other ways to cause this but the short of it is
> that plperl's error handling is entirely broken. See nearby rant
> in pghackers.

Oops...I did see that thread. I must have prematurely free()'d the
memory of it.

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2004-11-22 01:10:08 Re: select to_number('1,000', '999,999');
Previous Message Tom Lane 2004-11-21 08:16:36 Re: plperl: Undefined subroutine &main::mksafefunc