modifying a TupleTableSlot

Started by Hicham G. Elmonguiabout 21 years ago2 messages
#1Hicham G. Elmongui
elmongui@cs.purdue.edu

If I have a TupleTableSlot, and I need to obtain another TupleTableSlot with
a different TupleDesc (same fields but different order). Is there a way to
do it without that I go myself and try to retrieve the fields and form the
tuple myself? In other words, are there functions already in postgres that I
can use together to reach this?

Regards,

--h

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Hicham G. Elmongui (#1)
Re: modifying a TupleTableSlot

"Hicham G. Elmongui" <elmongui@cs.purdue.edu> writes:

If I have a TupleTableSlot, and I need to obtain another TupleTableSlot with
a different TupleDesc (same fields but different order). Is there a way to
do it without that I go myself and try to retrieve the fields and form the
tuple myself? In other words, are there functions already in postgres that I
can use together to reach this?

The CVS-tip junkfilter code is a reasonable prototype for this.

regards, tom lane