> -----Original Message-----
> From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
>
> "Hiroshi Inoue" <Inoue@tpf.co.jp> writes:
>
> > In addition,SQL functions has returned a TupleTableSlot not a tuple
> > if the return type is a compound type.
>
> Right, the Datum representation of a tuple type is a pointer to a
> TupleTableSlot, so that's what this new FieldSelect node would expect
> to see at runtime. I don't see any need to change that.
>
I see. Fieldselect node could expect to see the tuple descriptor used
to store the HeapTuple.
BTW,AFAIK PL/pgSQL functions return a HeapTuple directly.
Regards.
Hiroshi Inoue
Inoue@tpf.co.jp