Re: errcontext support in PL/Perl - Mailing list pgsql-hackers

From Tom Lane
Subject Re: errcontext support in PL/Perl
Date
Msg-id 14652.1248193349@sss.pgh.pa.us
Whole thread Raw
In response to Re: errcontext support in PL/Perl  (Alexey Klyukin <alexk@commandprompt.com>)
List pgsql-hackers
Alexey Klyukin <alexk@commandprompt.com> writes:
> On Jul 21, 2009, at 6:39 PM, Alvaro Herrera wrote:
>> Hmm, in plperl_exec_callback(), does the global variable work if you
>> call one plperl function from another?

> PL/Perl functions can't call each other directly.

Still, it's poor style to rely on the global variable when you don't
have to.  Use the error_context.arg field to pass it.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: errcontext support in PL/Perl
Next
From: Andrew Gierth
Date:
Subject: full join qualifications on 8.3.1 vs. 8.3.6