pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gaetano Mendola <mendola@bigfoot.com>
To: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Cc: Peter Eisentraut <peter_e@gmx.net>
Subject: Re: Actual function name
Date: Thu, 25 Sep 2003 17:10:37 +0200
Message-ID: <3F73056D.5000703@bigfoot.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0309251642340.29298-100000@peter.localdomain>
References: <3F72F810.5000006@bigfoot.com>
	<Pine.LNX.4.44.0309251642340.29298-100000@peter.localdomain>

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





view thread (3+ messages)

Message-ID: <3F73056D.5000703@bigfoot.com>
Permalink:  ../3F73056D.5000703@bigfoot.com/
Also on:    postgresql.org/message-id/3F73056D.5000703@bigfoot.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: mendola@bigfoot.com, peter_e@gmx.net
  Subject: Re: Actual function name
  In-Reply-To: <3F73056D.5000703@bigfoot.com>
  References: <3F72F810.5000006@bigfoot.com> <Pine.LNX.4.44.0309251642340.29298-100000@peter.localdomain> <3F73056D.5000703@bigfoot.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox