Received: from localhost (unknown [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 560129FB2E5 for ; Fri, 5 Oct 2007 16:15:13 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 60607-08 for ; Fri, 5 Oct 2007 16:14:59 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 455D39F98ED for ; Fri, 5 Oct 2007 16:15:05 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.1/8.14.1) with ESMTP id l95JF3uJ028116; Fri, 5 Oct 2007 15:15:03 -0400 (EDT) To: Robert Kleemann cc: pgsql-interfaces@postgresql.org Subject: Re: request for more descriptive plperl error messages In-reply-to: <4703E767.8020901@scharp.org> References: <4703E767.8020901@scharp.org> Comments: In-reply-to Robert Kleemann message dated "Wed, 03 Oct 2007 12:03:03 -0700" Date: Fri, 05 Oct 2007 15:15:03 -0400 Message-ID: <28115.1191611703@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200710/5 X-Sequence-Number: 6632 Robert Kleemann writes: > I'd like to modify the code to return the perl function name and submit > a patch but I've never developed in the postgres code base before and am > not sure where to start. Can the function and schema name be found in > the FunctionCallInfo structure that is passed? No. The easiest thing to do is save it in the plperl_proc_desc struct. See http://archives.postgresql.org/pgsql-committers/2007-10/msg00117.php regards, tom lane