Re: DirectFunctionCall3 and array_in

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: DirectFunctionCall3 and array_in
Дата
Msg-id 17445.1226635541@sss.pgh.pa.us
обсуждение исходный текст
Ответ на DirectFunctionCall3 and array_in  (Ashish Kamra <akamra@purdue.edu>)
Список pgsql-hackers
Ashish Kamra <akamra@purdue.edu> writes:
> I was trying to call the array_in() function using the 
> DirectFunctionCall3() interface. It fails as the code in array_in() 
> tries to refer to fcinfo->flinfo->fnextra where flinfo is set to NULL by 
> the DirectFunctionCall3() interface. I am not sure if this is a bug or 
> that we are not supposed to use DirectFunctionCall3 to call array_in.

You should be using InputFunctionCall to invoke any datatype input
function.  There are plenty of examples to follow in the standard PLs.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: CREATE AGGREGATE disallows STYPE = internal
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: WIP: Column-level Privileges