Re: Index-only scans for GiST.

Поиск
Список
Период
Сортировка
От Anastasia Lubennikova
Тема Re: Index-only scans for GiST.
Дата
Msg-id CAP4vRV40pq-9iAD7eEHnrk_19jkuJ-KzE0raMj3kW2QBvY+aCg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Index-only scans for GiST.  (Fabrízio de Royes Mello <fabriziomello@gmail.com>)
Ответы Re: Index-only scans for GiST.  (Heikki Linnakangas <hlinnaka@iki.fi>)
Список pgsql-hackers

I add MemoryContext listCxt to avoid memory leak. listCxt is created once in gistrescan (only for index-only scan plan ) and reseted when scan of the leaf page is finished.

I do not sure if the problem was completely solved, so I wait for feedback.

* What's the reason for turning GISTScanOpaqueData.pageData from an array to a List?

This array is field of structure GISTScanOpaqueData. Memory for that structure allocated in function gistbeginscan(). The array is static so it's declared only one time in structure:
GISTSearchHeapItem  pageData [BLCKSZ/sizeof(IndexTupleData)]

But how could we know size of array if we don't know what data would be returned? I mean type and amount.

I asked Alexander about that and he offered me to use List instead of Array.

Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: star schema and the optimizer
Следующее
От: Marc Cousin
Дата:
Сообщение: Re: star schema and the optimizer