mlw <[EMAIL PROTECTED]> writes:
> I have looked and I have looked, it is not immediately clear to me how
> integer arrays are passed to C function.
See src/include/utils/array.h, also src/backend/utils/adt/arrayfuncs.c
and src/backend/utils/adt/arrayutils.c. Beware: this code is pretty
messy.
I have looked and I have looked, it is not immediately clear to me how integer
arrays are passed to C function.
create table fubar (vars integer[]) ;
select c_function(vars) from fubar;
insert into fubar (vars) values ('{1,2,3,4,5,6}');
extern "C" c_function (varlena var)
{