ExecInitAppend - Mailing list pgsql-hackers

From Chris Bitmead
Subject ExecInitAppend
Date
Msg-id 389F8CF8.F2E54991@nimrod.itg.telecom.com.au
Whole thread Raw
Responses Re: [HACKERS] ExecInitAppend
List pgsql-hackers
In ExecInitAppend it initialises all the subplans...

for (i = 0; i < nplans; i++){
...
appendstate->as_whichplan = i;
exec_append_initialize_next(node);
..}

And then at the end of the function, it initialises the first plan
again...

appendstate->as_whichplan = 0;
exec_append_initialize_next(node);
return TRUE;

Is this code correct? Should the first plan really be initialised twice?


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [HACKERS] TODO item
Next
From: Chris Bitmead
Date:
Subject: UPDATE on subclass