Re: 2 Selects 1 is faster, why?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: 2 Selects 1 is faster, why?
Дата
Msg-id 2367.1025236360@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: 2 Selects 1 is faster, why?  (Keith Gray <keith@heart.com.au>)
Список pgsql-sql
Keith Gray <keith@heart.com.au> writes:
> ...but is it true that if you place the filter clause first,
> the join will not have to complete the whole table?

PG's planner does not pay attention to the ordering of WHERE clauses;
it will do what it thinks best with them in any case.
        regards, tom lane




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

Предыдущее
От: q u a d r a
Дата:
Сообщение: time difference
Следующее
От: Joseph Syjuco
Дата:
Сообщение: transaction in plpgsql