Re: [HACKERS] Is this it? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [HACKERS] Is this it?
Date
Msg-id 348.949990648@sss.pgh.pa.us
Whole thread Raw
In response to Is this it?  (Chris Bitmead <chrisb@nimrod.itg.telstra.com.au>)
List pgsql-hackers
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


pgsql-hackers by date:

Previous
From: Chris Bitmead
Date:
Subject: Re: [HACKERS] New Globe
Next
From: Lamar Owen
Date:
Subject: Questions on 7.0 for RPM building