Tom Lane wrote:
> Joe Conway <mail@joeconway.com> writes:
>
>>>+ Oid element_type = planstate->ps_ResultTupleSlot->tts_tupleDescriptor->attrs[0]->atttypid;
>
>
> Hmm, that makes me itch ... it seems like unwarranted familiarity with
> the innards of the subplan; not only as to where it keeps things, but
> when things have been initialized. Perhaps we have no choice, but isn't
> the datatype available on the current plan level?
>
I poked around a bit, and that was the best I could come up with. I'll
take another look.
Joe