Re: OID of current function

Поиск
Список
Период
Сортировка
От Thomas Hallgren
Тема Re: OID of current function
Дата
Msg-id 41E53D6C.6060905@mailblocks.com
обсуждение исходный текст
Ответ на OID of current function  ("Jim C. Nasby" <decibel@decibel.org>)
Ответы Re: OID of current function  ("Jim C. Nasby" <decibel@decibel.org>)
Список pgsql-general
Jim C. Nasby wrote:
> Is there an easy way to get the OID of the currently running function?
> (IE: the function you're in when you execute the code to see what
> function you're in, if that makes any sense).

In what language? In C you can use:

Datum your_function(PG_FUNCTION_ARGS)
{
    Oid funcOid = fcinfo->flinfo->fn_oid;
    ...
}

Regards,
Thomas Hallgren

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

Предыдущее
От: Marco Colombo
Дата:
Сообщение: Re: Bug in pg_dump in 7.4.6?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Bug in pg_dump in 7.4.6?