modifying a TupleTableSlot

Поиск
Список
Период
Сортировка
Искать

modifying a TupleTableSlot

От:
"Hicham 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



Re: modifying a TupleTableSlot

От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
"Hicham G. Elmongui"  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

FAQ