DirectFunctionCall3 and array_in

From: Ashish Kamra <akamra(at)purdue(dot)edu>
To: pgsql-hackers(at)postgresql(dot)org
Subject: DirectFunctionCall3 and array_in
Date: 2008-11-14 00:53:09
Message-ID: 491CCBF5.9020304@purdue.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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.

Anyway, I debugged some array related to queries to find that the
following function sequence is used to call array_in

...
OidInputFunctionCall
InputFunctionCall
...

For the time being I will use this, but can someone clarify if what I
stated above is a problem?

Thanks,
Ashish

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2008-11-14 01:22:27 CREATE AGGREGATE disallows STYPE = internal
Previous Message Robert Haas 2008-11-14 00:37:46 Re: array_agg and array_accum (patch)