Re: ecxt_scantuple has wrong TupleDesc - Mailing list pgsql-hackers

From Tom Lane
Subject Re: ecxt_scantuple has wrong TupleDesc
Date
Msg-id 21394.1197908829@sss.pgh.pa.us
Whole thread Raw
In response to ecxt_scantuple has wrong TupleDesc  (peter.trautmeier@gmx.de)
Responses Re: ecxt_scantuple has wrong TupleDesc  (peter.trautmeier@gmx.de)
List pgsql-hackers
peter.trautmeier@gmx.de 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 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. 
 

That makes no sense at all.  ExecProject can't be expected to access
output columns of the current node --- they haven't been computed yet.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pgindent issue with EXEC_BACKEND-only typedefs
Next
From: Oleg Bartunov
Date:
Subject: Board for developers