mlw <markw(at)mohawksoft(dot)com> 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.
regards, tom lane