From: | Alexander Korotkov <aekorotkov(at)gmail(dot)com> |
---|---|
To: | Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com> |
Cc: | pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Double sorting split patch |
Date: | 2011-09-22 11:31:32 |
Message-ID: | CAPpHfdtf_sKufPJZ0XrOba8zcsWApBWUaqAPRv39niSEQYdrdA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Thu, Sep 22, 2011 at 3:22 PM, Heikki Linnakangas <
heikki(dot)linnakangas(at)enterprisedb(dot)com> wrote:
> ! /*
>> ! * Calculate delta between penalties of join "common
>> entries" to
>> ! * different groups.
>> ! */
>> ! for (i = 0; i < commonEntriesCount; i++)
>> {
>> ! double lower,
>> ! upper;
>> !
>> ! box = DatumGetBoxP(entryvec->vector[**
>> commonEntries[i].index].key);
>> ! if (context.dim == 0)
>> ! {
>> ! lower = box->low.x;
>> ! upper = box->high.x;
>> ! }
>> ! else
>> ! {
>> ! lower = box->low.y;
>> ! upper = box->high.y;
>> ! }
>> ! commonEntries[i].delta = Abs(box_penalty(leftBox,
>> box) -
>> !
>> box_penalty(rightBox, box));
>> }
>>
>
> 'lower' and 'upper' are not used for anything in the above. Is that just
> dead code that can be removed, or is there something missing that should be
> using them?
Yes, it's just dead code.
------
With best regards,
Alexander Korotkov.
From | Date | Subject | |
---|---|---|---|
Next Message | Fujii Masao | 2011-09-22 12:13:43 | Re: Online base backup from the hot-standby |
Previous Message | Kyotaro HORIGUCHI | 2011-09-22 11:30:29 | Re: [v9.2] make_greater_string() does not return a string in some cases |