Re: [HACKERS] ecxt_scantuple has wrong TupleDesc

2007-12-18 Thread Tom Lane
Martijn van Oosterhout <[EMAIL PROTECTED]> writes: > On Tue, Dec 18, 2007 at 02:48:23PM +0100, [EMAIL PROTECTED] wrote: >> But then, I still don't get the relationship between >> >> INNER, OUTER varnos on the one side and >> ecxt_scantuple, ecxt_outertuple and ecxt_innertuple on the other side. >

Re: [HACKERS] ecxt_scantuple has wrong TupleDesc

2007-12-18 Thread Martijn van Oosterhout
On Tue, Dec 18, 2007 at 02:48:23PM +0100, [EMAIL PROTECTED] wrote: > But then, I still don't get the relationship between > > INNER, OUTER varnos on the one side and > ecxt_scantuple, ecxt_outertuple and ecxt_innertuple on the other side. > > May a non-leaf node refer to a Var with a 'normal'

Re: [HACKERS] ecxt_scantuple has wrong TupleDesc

2007-12-18 Thread peter . trautmeier
Thanks Tom, that made it clear I made a mistake. > That's the way it's supposed to be --- the scantuple slot is for > scanning your subplan's output. Browsing through the code I get the impression, that - ecxt_scantuple is only used by Scan nodes (i.e. SeqScan, IndexScan, SubqueryScan and Fun

Re: [HACKERS] ecxt_scantuple has wrong TupleDesc

2007-12-17 Thread Tom Lane
[EMAIL PROTECTED] writes: > I wonder why my ecxt_scantuple has a TupleDesc matching the subplan's > tlist, not my plan's tlist. That's the way it's supposed to be --- the scantuple slot is for scanning your subplan's output. > I have written a new executor node Foo, with corresponding ExecFoo and

[HACKERS] ecxt_scantuple has wrong TupleDesc

2007-12-17 Thread peter . trautmeier
Hi all, I wonder why my ecxt_scantuple has a TupleDesc matching the subplan's tlist, not my plan's tlist. Basically, my question is 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 E