Skip site navigation (1) Skip section navigation (2)

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: (view raw, whole thread or download thread mbox)
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

pgsql-hackers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group