Re: errcontext support in PL/Perl

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alexey Klyukin <alexk(at)commandprompt(dot)com>
Cc: Alvaro Herrera <alvherre(at)commandprompt(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: errcontext support in PL/Perl
Date: 2009-07-21 16:22:29
Message-ID: 14652.1248193349@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Alexey Klyukin <alexk(at)commandprompt(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Gierth 2009-07-21 16:27:16 full join qualifications on 8.3.1 vs. 8.3.6
Previous Message Alvaro Herrera 2009-07-21 16:20:50 Re: errcontext support in PL/Perl