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

errcontext support in PL/Perl

From: Alexey Klyukin <alexk(at)commandprompt(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: errcontext support in PL/Perl
Date: 2009-07-21 13:47:47
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers

While trying to build a custom error reporting function for one of our  
clients we came across the fact that PL/Perl doesn't set errcontext  
that we relied on to get the traceback of running functions. Exactly  
the same problem with PL/Python was fixed recently by Peter Eisentraut  

Attached is a patch (HEAD) that sets errcontext with PL/Perl function  
name, making a distinction between compilation and execution stages,  
fixes error messages where function name was already included in the  
message itself and updates regression tests. I'll appreciate any  
suggestions on how to improve it.

Attachment: plperl_error_callback.diff
Description: application/octet-stream (14.9 KB)


pgsql-hackers by date

Next:From: Magnus HaganderDate: 2009-07-21 13:50:58
Subject: Re: [PATCH] user mapping extension to pg_ident.conf
Previous:From: Tom LaneDate: 2009-07-21 13:46:25
Subject: Re: pg_restore --clean vs. large object

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