Re: Forcing filter/join order?

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: Forcing filter/join order?
Дата
Msg-id 200402181631.54175.josh@agliodbs.com
обсуждение исходный текст
Ответ на Re: Forcing filter/join order?  ("Peter Darley" <pdarley@kinesis-cem.com>)
Список pgsql-performance
Peter,

>     I'm sure the big brains have a better suggestion, but in the mean time
> could you do something as simple as:
>
> SELECT *
> FROM (select * from events where event_date BETWEEN 'date1' AND 'date2') e
> LEFT OUTER JOIN cases ON e.case_id = cases.case_id;

Thanks, but that doens't work; the planner will collapse the subquery into the
main query, which most of the time is the right thing to do.

--
-Josh Berkus
 Aglio Database Solutions
 San Francisco


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

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: Forcing filter/join order?
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: Forcing filter/join order?