Re: Actual function name

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Gaetano Mendola <mendola(at)bigfoot(dot)com>
Cc: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Actual function name
Date: 2003-09-25 14:43:44
Message-ID: Pine.LNX.4.44.0309251642340.29298-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)gmx(dot)net

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message A.Bhuvaneswaran 2003-09-25 15:06:02 Re: how to take a single table data backup in postgres 7.2.3
Previous Message Gaetano Mendola 2003-09-25 14:13:36 Actual function name