Re: Determine the name of the calling function

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jack Kaufman <jack(dot)kaufman(at)sanmina(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Determine the name of the calling function
Date: 2013-01-18 17:32:55
Message-ID: 9933.1358530375@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Jack Kaufman <jack(dot)kaufman(at)sanmina(dot)com> writes:
> Our shop is converting to PostgreSQL & PL/pgSQL and we are figuring out how
> to apply the language to our environment. I want to write some API
> functions that will be called from many other functions. I want these APIs
> to log errors to a table and I would like the table entries to include the
> name of the function that called the API. Anyway, that's where I'm headed.

Hm ... if you're going to be translating anyway, why not just add the
caller's function name as an explicit parameter?

regards, tom lane

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Jack Kaufman 2013-01-18 19:35:08 Re: Determine the name of the calling function
Previous Message Daniel Staal 2013-01-18 17:12:05 Re: Determine the name of the calling function