Re: Double sorting split patch

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: Double sorting split patch
Дата
Msg-id 4E7B1A7C.80103@enterprisedb.com
обсуждение исходный текст
Ответ на Re: Double sorting split patch  (Alexander Korotkov <aekorotkov@gmail.com>)
Ответы Re: Double sorting split patch
Список pgsql-hackers
> !         /*
> !          * 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?

--   Heikki Linnakangas  EnterpriseDB   http://www.enterprisedb.com


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Alexander Korotkov
Дата:
Сообщение: Re: WIP: SP-GiST, Space-Partitioned GiST
Следующее
От: Kyotaro HORIGUCHI
Дата:
Сообщение: Re: [v9.2] make_greater_string() does not return a string in some cases