Re: INNER JOIN ON vs ','+WHERE

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: INNER JOIN ON vs ','+WHERE
Дата
Msg-id 16712.993491568@sss.pgh.pa.us
обсуждение исходный текст
Ответ на INNER JOIN ON vs ','+WHERE  ("Thalis A. Kalfigopoulos" <thalis@cs.pitt.edu>)
Ответы Re: INNER JOIN ON vs ','+WHERE
Список pgsql-general
"Thalis A. Kalfigopoulos" <thalis@cs.pitt.edu> writes:
> 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? 

http://www.ca.postgresql.org/users-lounge/docs/7.1/postgres/explicit-joins.html

            regards, tom lane

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

Предыдущее
От: "Gregory Wood"
Дата:
Сообщение: Re: More Red Hat information
Следующее
От: "Thalis A. Kalfigopoulos"
Дата:
Сообщение: Re: Red Hat to support PostgreSQL