Re: Seeking expected return type info for SPI function

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Seeking expected return type info for SPI function
Дата
Msg-id 28798.1260486278@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Seeking expected return type info for SPI function  ("J. Greg Davidson" <jgd@well.com>)
Список pgsql-general
"J. Greg Davidson" <jgd@well.com> writes:
> When PostgreSQL calls a C function I get all kinds of interesting
> information in the
>     struct FunctionCallInfoData
> and
>     struct FmgrInfo
> (details at bottom).  I was hoping to get the oid of the expected
> return type somewhere, but I don't see it.  Am I missing something?

get_fn_expr_rettype() can get that for you in most circumstances.

            regards, tom lane

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

Предыдущее
От: "J. Greg Davidson"
Дата:
Сообщение: Seeking expected return type info for SPI function
Следующее
От: Scott Ribe
Дата:
Сообщение: Re: Cheapest way to poll for notifications?