Re: [HACKERS] path toward faster partition pruning

Поиск
Список
Период
Сортировка
От Jesper Pedersen
Тема Re: [HACKERS] path toward faster partition pruning
Дата
Msg-id 8d438921-9872-f978-4a5a-650c1ca65790@redhat.com
обсуждение исходный текст
Ответ на Re: [HACKERS] path toward faster partition pruning  (Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>)
Ответы Re: [HACKERS] path toward faster partition pruning  (Jesper Pedersen <jesper.pedersen@redhat.com>)
Список pgsql-hackers
Hi Amit,

On 03/27/2018 06:42 AM, Amit Langote wrote:
> I have managed to make the recursion go away in the attached updated
> version.  I guess that's the result of employing the idea of a "output
> register" for individual pruning steps as mentioned in Robert's email
> upthread where he detailed the "pruning steps" approach [1].
> 
> With the new patch, pruning steps for arguments of, say, an OR clause are
> not performed recursively.  Instead, each pruning step is performed
> independently and its output is stored in a slot dedicated to it.  Combine
> steps are always executed after all of the steps corresponding to its
> arguments have been executed.  That's ensured by the way steps are allocated.
> 

Running v41 with "partition_prune" under valgrind gives the attached report.

Best regards,
  Jesper

Вложения

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

Предыдущее
От: Tomas Vondra
Дата:
Сообщение: Re: [HACKERS] PATCH: multivariate histograms and MCV lists
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Changing WAL Header to reduce contention during ReserveXLogInsertLocation()