X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 31825D1B538 for ; Thu, 25 Sep 2003 15:10:51 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 13504-09 for ; Thu, 25 Sep 2003 12:10:40 -0300 (ADT) Received: from pns.mm.eutelsat.org (pns.mm.eutelsat.org [194.214.173.227]) by svr1.postgresql.org (Postfix) with ESMTP id D1744D1B504 for ; Thu, 25 Sep 2003 12:10:39 -0300 (ADT) Received: from nts-03.mm.eutelsat.org (localhost [127.0.0.1]) by pns.mm.eutelsat.org (8.11.6/linuxconf) with ESMTP id h8PEC5U23355; Thu, 25 Sep 2003 16:12:05 +0200 Received: from bigfoot.com (gmendola2.mm.eutelsat.org [194.214.173.26]) by nts-03.mm.eutelsat.org (8.11.6/linuxconf) with ESMTP id h8PF3mR06647; Thu, 25 Sep 2003 17:03:48 +0200 Message-ID: <3F73056D.5000703@bigfoot.com> Date: Thu, 25 Sep 2003 17:10:37 +0200 From: Gaetano Mendola User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5b) Gecko/20030901 Thunderbird/0.2 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "pgsql-admin@postgresql.org" Cc: Peter Eisentraut Subject: Re: Actual function name References: <3F72F810.5000006@bigfoot.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/407 X-Sequence-Number: 10495 Peter Eisentraut wrote: > Gaetano Mendola writes: > > >>is there a way to know the name of current function, >>somethink like $0 for a shell script ? > > > In a C function, you can get the OID of the function from > fcinfo->flinfo->fn_oid. From that you can get the name and the argument > types. > I'm inside a plpgsql function unfortunately, I was confident on use $0 but on postgres 7.3.X doesn't work. I think that may be is a TODO ? Gaetano