Re: Actual function name - Mailing list pgsql-admin

From Peter Eisentraut
Subject Re: Actual function name
Date
Msg-id Pine.LNX.4.44.0309251642340.29298-100000@peter.localdomain
Whole thread Raw
In response to Actual function name  (Gaetano Mendola <mendola@bigfoot.com>)
Responses Re: Actual function name  (Gaetano Mendola <mendola@bigfoot.com>)
List pgsql-admin
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.

--
Peter Eisentraut   peter_e@gmx.net


pgsql-admin by date:

Previous
From: Gaetano Mendola
Date:
Subject: Actual function name
Next
From: "A.Bhuvaneswaran"
Date:
Subject: Re: how to take a single table data backup in postgres 7.2.3