strk <strk(at)keybit(dot)net> writes:
> My question is: if I write in the "state" array
> pointers to DETOASTED input args,
> will I find them intact at finalfunc time ?
No, not without pushups. You are called in a short-lived memory
context. You could allocate query-lifetime memory in fcinfo->fn_mcxt,
but it's then your responsibility to ensure there are no undesirable
memory leaks.
regards, tom lane