Tom, thanks again for the quick answer and
sorry for the lame question about memor allocation.
I hope this is acceptable:
Is there a way to make PG_DETOAST_DATUM and friends allocate
memory in a custom memory context ?
Right now I'm DETOASTing, memcopying in a custom context
and pfreeing the DETOASTed datum, I'd like to avoid one
copy.
TIA.
--strk;