Re: DirectFunctionCall3 and array_in - Mailing list pgsql-hackers

From Tom Lane
Subject Re: DirectFunctionCall3 and array_in
Date
Msg-id 17445.1226635541@sss.pgh.pa.us
Whole thread Raw
In response to DirectFunctionCall3 and array_in  (Ashish Kamra <akamra@purdue.edu>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: CREATE AGGREGATE disallows STYPE = internal
Next
From: Alvaro Herrera
Date:
Subject: Re: WIP: Column-level Privileges