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