Function name variable within a non-trigger function

From: Berend Tober <btober(at)seaworthysys(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Function name variable within a non-trigger function
Date: 2005-11-24 15:44:19
Message-ID: 4385DFD3.6010604@seaworthysys.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I know that within a trigger function the functin name can be referenced
by the special variable TG_NAME, so I could include raise an exception
that identified its source with a line like:

RAISE EXCEPTION ''ERROR IN %'', TG_NAME;

Is there a similar set of special variables defined for "normal", i.e.,
non-trigger functions, too?

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2005-11-24 15:52:29 Re: "invalid page header in block 597621 of relation..."error
Previous Message Adam Witney 2005-11-24 15:42:48 Re: "invalid page header in block 597621 of relation..."error