Re: Query with high planning time at version 11.1 compared versions10.5 and 11.0

Поиск
Список
Период
Сортировка
От Etsuro Fujita
Тема Re: Query with high planning time at version 11.1 compared versions10.5 and 11.0
Дата
Msg-id 5C37FD8D.4080302@lab.ntt.co.jp
обсуждение исходный текст
Ответ на Re: Query with high planning time at version 11.1 compared versions10.5 and 11.0  (Amit Langote <amitlangote09@gmail.com>)
Ответы Re: Query with high planning time at version 11.1 compared versions10.5 and 11.0  (Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>)
Список pgsql-hackers
(2019/01/10 21:23), Amit Langote wrote:
> On Thu, Jan 10, 2019 at 6:49 PM Ashutosh Bapat
> <ashutosh.bapat.oss@gmail.com>  wrote:
>> Though this will solve a problem for performance when partition-wise join is not possible, we still have the same
problemwhen partition-wise join is possible. And that problem really happens because our inheritance mechanism requires
expressiontranslation from parent to child everywhere. That consumes memory, eats CPU cycles and generally downgrades
performanceof partition related query planning. I think a better way would be to avoid these translations and use
Parentvar to represent a Var of the child being dealt with. That will be a massive churn on inheritance based planner
code,but it will improve planning time for queries involving thousands of partitions.
 
>
> Yeah, it would be nice going forward to overhaul inheritance planning
> such that parent-to-child Var translation is not needed, especially
> where no pruning can occur or many partitions remain even after
> pruning.

I agree on that point, but I think that's an improvement for a future 
release rather than a fix for the issue reported on this thread.

Best regards,
Etsuro Fujita



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

Предыдущее
От: Kohei KaiGai
Дата:
Сообщение: Re: add_partial_path() may remove dominated path but still in use
Следующее
От: "Yuzuko Hosoya"
Дата:
Сообщение: RE: Improve selectivity estimate for range queries