Re: add_path() for Path without InitPlan: cost comparison vs. Paths that require one

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: add_path() for Path without InitPlan: cost comparison vs. Paths that require one
Дата
Msg-id 9080.1564061116@sss.pgh.pa.us
обсуждение исходный текст
Ответ на add_path() for Path without InitPlan: cost comparison vs. Paths that require one  (Dent John <denty@qqdd.eu>)
Ответы Re: add_path() for Path without InitPlan: cost comparison vs. Paths that require one  (Dent John <denty@qqdd.eu>)
Список pgsql-hackers
Dent John <denty@qqdd.eu> writes:
> However, if I factor back in the cost of the InitPlan, things net out much more in favour of a scan against the MV.
Ofcourse, the add_path() comparison logic doesn’t include the InitPlan cost, so the point is moot.  

Please explain yourself.  InitPlans will, as a rule, get stuck into the
same place in the plan tree regardless of which paths are chosen; that's
why we need not consider them in path cost comparisons.  Moreover, once
the initplan's own subplan is determined, it's going to be the same
regardless of the shape of the outer query --- so if we did factor it
in, it'd contribute the same cost to every outer path, and thus it
still wouldn't change any decisions.  So I don't follow what you're
on about here.

            regards, tom lane



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

Предыдущее
От: pantilimonov michael
Дата:
Сообщение: Re: [GSoC] artbufmgr
Следующее
От: Rafia Sabih
Дата:
Сообщение: Re: Initdb failure