ecxt_scantuple has wrong TupleDesc

Поиск
Список
Период
Сортировка
От peter.trautmeier@gmx.de
Тема ecxt_scantuple has wrong TupleDesc
Дата
Msg-id 20071217114551.152900@gmx.net
обсуждение исходный текст
Ответы Re: ecxt_scantuple has wrong TupleDesc  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hi all,

I wonder why my ecxt_scantuple has a TupleDesc matching the subplan's tlist, not my plan's tlist. Basically, my
questionis what is x in
 

econtext->ecxt_scantuple = x ?

I have written a new executor node Foo, with corresponding ExecFoo and make_foo functions. I have also written a new
Exprtype called Bar, along with a ExecEvalBar. 
 

In make_foo I append some Bar columns. When I try to evaluate the Bar columns in ExecFoo via ExecProject, I need the
Barcolumns to access each other. 
 

But sadly, the ecxt_scantuple doesn't have any Bar columns because it has a TupleDesc from the subplan.

What are the steps I have to take to make sure I can access my Bar columns (which only exist in Foo) in ExecEvalBar?
Wheredo I get a TupleTableSlot with the desired TupleDesc from?
 

I'll be happy to provide more information, if needed.

Regards
Peter


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: Proposal for Null Bitmap Optimization(for Trailing NULLs)
Следующее
От: "Gokulakannan Somasundaram"
Дата:
Сообщение: Re: Proposal for Null Bitmap Optimization(for Trailing NULLs)