Re: Actual function name

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Actual function name
Дата
Msg-id Pine.LNX.4.44.0309251642340.29298-100000@peter.localdomain
обсуждение исходный текст
Ответ на Actual function name  (Gaetano Mendola <mendola@bigfoot.com>)
Ответы Re: Actual function name  (Gaetano Mendola <mendola@bigfoot.com>)
Список pgsql-admin
Gaetano Mendola writes:

> is there a way to know the name of current function,
> somethink like $0 for a shell script ?

In a C function, you can get the OID of the function from
fcinfo->flinfo->fn_oid.  From that you can get the name and the argument
types.

--
Peter Eisentraut   peter_e@gmx.net


В списке pgsql-admin по дате отправления:

Предыдущее
От: Gaetano Mendola
Дата:
Сообщение: Actual function name
Следующее
От: "A.Bhuvaneswaran"
Дата:
Сообщение: Re: how to take a single table data backup in postgres 7.2.3