Re: Slow inner join, but left join is fast

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Slow inner join, but left join is fast
Дата
Msg-id 14865.1168454295@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Slow inner join, but left join is fast  ("Jeremy Haile" <jhaile@fastmail.fm>)
Ответы Re: Slow inner join, but left join is fast
Список pgsql-performance
"Jeremy Haile" <jhaile@fastmail.fm> writes:
> I still don't understand why the inner join would be so different from
> the left join prior to the analyze.

Are you sure you hadn't analyzed in between?  Or maybe autovac did it
for you?  The reason for the plan change is the change from estimating
1 row matching the transaction_date range constraint, to estimating lots
of them, and the join type away up at the top would surely not have
affected that.

            regards, tom lane

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

Предыдущее
От: "Jeremy Haile"
Дата:
Сообщение: Re: Slow inner join, but left join is fast
Следующее
От: "Jeremy Haile"
Дата:
Сообщение: Re: Slow inner join, but left join is fast