Re: DirectFunctionCall3 and array_in

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ashish Kamra <akamra(at)purdue(dot)edu>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: DirectFunctionCall3 and array_in
Date: 2008-11-14 04:05:41
Message-ID: 17445.1226635541@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Ashish Kamra <akamra(at)purdue(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2008-11-14 07:52:01 Re: Simple postgresql.conf wizard
Previous Message Robert Haas 2008-11-14 03:46:11 Re: Simple postgresql.conf wizard