Re: same query different execution plan (hash join vs. semi-hash join)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: same query different execution plan (hash join vs. semi-hash join)
Дата
Msg-id 868.1400509337@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: same query different execution plan (hash join vs. semi-hash join)  ("Huang, Suya" <Suya.Huang@au.experian.com>)
Ответы Re: same query different execution plan (hash join vs. semi-hash join)  ("Huang, Suya" <Suya.Huang@au.experian.com>)
Список pgsql-performance
"Huang, Suya" <Suya.Huang@au.experian.com> writes:
> Thank you Tom. But the time spent on scanning table test1 is less than 1 second (91.738 compares to 87.869), so I
guessthis shouldn't be the issue? 

No, the point is that the bad rowcount estimate (and, possibly, lack of
stats about join column contents) causes the planner to pick a join method
that's not ideal for this query.

            regards, tom lane


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

Предыдущее
От: David Rowley
Дата:
Сообщение: Re: View has different query plan than select statement
Следующее
От: Scott Marlowe
Дата:
Сообщение: Re: Query plan good in 8.4, bad in 9.2 and better in 9.3