Re: [POC] A better way to expand hash indexes.

Поиск
Список
Период
Сортировка
От Mithun Cy
Тема Re: [POC] A better way to expand hash indexes.
Дата
Msg-id CAD__OujbAwNU71v1y-RoQxZ8LZ6-V2UFTkex3v34MK6uZ3Xb5w@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [POC] A better way to expand hash indexes.  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: [POC] A better way to expand hash indexes.
Список pgsql-hackers
On Tue, Apr 4, 2017 at 9:18 AM, Robert Haas <robertmhaas@gmail.com> wrote:
> Committed.

Thanks Robert,

And also sorry, one unfortunate thing happened in the last patch while
fixing one of the review comments a variable disappeared from the
equation
@_hash_spareindex.

        splitpoint_phases +=
-               (((num_bucket - 1) >> (HASH_SPLITPOINT_PHASE_BITS + 1)) &
+               (((num_bucket - 1) >>
+                 (splitpoint_group - (HASH_SPLITPOINT_PHASE_BITS + 1))) &
                 HASH_SPLITPOINT_PHASE_MASK);   /* to 0-based value. */

I wanted most significant 3 bits. And while fixing comments in patch11
I unknowingly somehow removed splitpoint_group from the equation.
Extremely sorry for the mistake. Thanks to Ashutosh Sharma for
pointing the mistake.


-- 
Thanks and Regards
Mithun C Y
EnterpriseDB: http://www.enterprisedb.com

Вложения

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

Предыдущее
От: Kyotaro HORIGUCHI
Дата:
Сообщение: Re: FDW and parallel execution
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Implementation of SASLprep for SCRAM-SHA-256