Re: [HACKERS] integer arrays

2001-04-16 Thread Tom Lane
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.

[HACKERS] integer arrays

2001-04-16 Thread mlw
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) {