Re: Change query join order

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Change query join order
Дата
Msg-id 9969.1262975223@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Change query join order  (Kaloyan Iliev Iliev <kaloyan@digsys.bg>)
Ответы Re: Change query join order  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-performance
Kaloyan Iliev Iliev <kaloyan@digsys.bg> writes:
> My question is why the planner didn't do the index scan first on ms_data
> to reduce the rows to ~ 11000 and the use the PK index on
> ms_commands_history.

11000 index probes aren't exactly free.  If they take more than about
1msec apiece, the planner picked the right plan.

            regards, tom lane

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

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: Re: Massive table (500M rows) update nightmare
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Change query join order