Chris Bitmead <chrisb@nimrod.itg.telstra.com.au> writes:
> In ExecInitAppend it has a loop...
> foreach(rtentryP, rtable)
> {
> resultList = lcons(rri, resultList);
> }
> appendstate->as_result_relation_info_list = resultList;
> If I'm not mistaken this will generate the as_result_relation_info_list
> in the reverse order to the rtentry list,
Check ...
> which is wrong... right?
Maybe. Is there code elsewhere that assumes these lists are ordered
alike?
You could change the lcons call to "lappend(resultList, rri)" if
you just want to try the experiment.
regards, tom lane