Re: Cost and execution plan

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Cost and execution plan
Дата
Msg-id 28646.1561608194@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Cost and execution plan  (AminPG Jaffer <aminjaffer.pg@gmail.com>)
Список pgsql-hackers
AminPG Jaffer <aminjaffer.pg@gmail.com> writes:
> We are facing an issue where the cost shows up "cost=10000000000.00" so
> trying to find where that is set.

That means you've turned off enable_seqscan (or one of its siblings)
but the planner is choosing a seqscan plan (or other plan type you
tried to disable) anyway because it has no other alternative.

> Could anyone point me to the code where the cost "cost=10000000000.00" is
> set?

Look for disable_cost.

            regards, tom lane



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

Предыдущее
От: AminPG Jaffer
Дата:
Сообщение: Cost and execution plan
Следующее
От: Tom Lane
Дата:
Сообщение: Re: mcvstats serialization code is still shy of a load