Re: Actual function name

From: Gaetano Mendola <mendola(at)bigfoot(dot)com>
To: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>
Subject: Re: Actual function name
Date: 2003-09-25 15:10:37
Message-ID: 3F73056D.5000703@bigfoot.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Naomi Walker 2003-09-25 17:01:04 pg_dump & SQL statements
Previous Message A.Bhuvaneswaran 2003-09-25 15:06:02 Re: how to take a single table data backup in postgres 7.2.3