Re: Determine the name of the calling function - Mailing list pgsql-novice

From Tom Lane
Subject Re: Determine the name of the calling function
Date
Msg-id 9933.1358530375@sss.pgh.pa.us
Whole thread Raw
In response to Re: Determine the name of the calling function  (Jack Kaufman <jack.kaufman@sanmina.com>)
Responses Re: Determine the name of the calling function  (Jack Kaufman <jack.kaufman@sanmina.com>)
List pgsql-novice
Jack Kaufman <jack.kaufman@sanmina.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


pgsql-novice by date:

Previous
From: Daniel Staal
Date:
Subject: Re: Determine the name of the calling function
Next
From: Jack Kaufman
Date:
Subject: Re: Determine the name of the calling function