Re: Determine the name of the calling function

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Determine the name of the calling function
Дата
Msg-id 9933.1358530375@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Determine the name of the calling function  (Jack Kaufman <jack.kaufman@sanmina.com>)
Ответы Re: Determine the name of the calling function  (Jack Kaufman <jack.kaufman@sanmina.com>)
Список 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 по дате отправления:

Предыдущее
От: Daniel Staal
Дата:
Сообщение: Re: Determine the name of the calling function
Следующее
От: Jack Kaufman
Дата:
Сообщение: Re: Determine the name of the calling function