INNER JOIN ON vs ','+WHERE

Поиск
Список
Период
Сортировка
От Thalis A. Kalfigopoulos
Тема INNER JOIN ON vs ','+WHERE
Дата
Msg-id Pine.LNX.4.21.0106251258410.27771-100000@aluminum.cs.pitt.edu
обсуждение исходный текст
Ответы Re: INNER JOIN ON vs ','+WHERE  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
I noticed that doing a join with the INNER JOIN ON... syntax gives a different execution plan (for complex queries at
least)than when using the ',' syntax with the join conditions in the WHERE clause. Actually the latter proved more
efficient:-/ 

I assume/guess/speculate that the optimizer gets more freedom in the order it'll perform the join when all conditions
arejust thrown in the WHERE clause whereas the former case forces it to follow the user provided join order? 

TIA,
thalis


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

Предыдущее
От: Frank Hilliard
Дата:
Сообщение: Storage limits in PostgreSQL?
Следующее
От: Vince Vielhaber
Дата:
Сообщение: Re: More Red Hat information