Re: BRIN INDEX value

Поиск
Список
Период
Сортировка
От Amit Langote
Тема Re: BRIN INDEX value
Дата
Msg-id 55E8F1E7.7000900@lab.ntt.co.jp
обсуждение исходный текст
Ответ на Re: BRIN INDEX value  (Tatsuo Ishii <ishii@postgresql.org>)
Ответы Re: BRIN INDEX value  (Tatsuo Ishii <ishii@postgresql.org>)
Список pgsql-hackers
On 9/4/2015 8:28 AM, Tatsuo Ishii wrote:
>>
>> Attached hack fixes the symptom but perhaps not the correct fix for this.
>
> Why can't we fix summarize_range() in brin.c:
>
>     IndexBuildHeapRangeScan(heapRel, state->bs_irel, indexInfo, false, true,
>                             heapBlk, state->bs_pagesPerRange,
>                             brinbuildCallback, (void *) state);
>
> This currently thoughtlessly passes scannumblocks as
> state->bs_pagesPerRange. Shouldn't we change this so that
> (scanStartBlock + scanNumBlocks) does not exceed scan->rs_nblocks?
>

Ah, it did cross my mind to the fix it in brin.c but was not sure. I did
it that way in the attached patch.

Thanks,
Amit

Вложения

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

Предыдущее
От: Amit Kapila
Дата:
Сообщение: Re: Reduce ProcArrayLock contention
Следующее
От: Fujii Masao
Дата:
Сообщение: Re: Freeze avoidance of very large table.