Thomas Hallgren <thomas(at)tada(dot)se> writes:
> The thing that makes me a bit confused is the
> ArrayMetaState. The functions obtain it using:
> my_extra = (ArrayMetaState *) fcinfo->flinfo->fn_extra;
> which is fine if there's only one array parameter. What happens if I
> have two?
Make a struct that can hold two ArrayMetaStates. Or whatever else you
need. What a C function keeps in fn_extra is its own affair.
regards, tom lane