Re: [SQL] indexes

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [SQL] indexes
Дата
Msg-id 21255.928245899@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [SQL] indexes  (Remigiusz Sokolowski <rems@gdansk.sprint.pl>)
Список pgsql-sql
Remigiusz Sokolowski <rems@gdansk.sprint.pl> writes:
> But without Vadim's suggestion I've got still similar results - sometimes
> optimizer has used index on e1 and on b1, sometimes on e1 and e2, but
> never on e1,b1 and e2 at once (note: this was join on ent e1, binds b1 and
> ent e2)

You won't ever see a three-way join in EXPLAIN's output, if that was
what you were looking for.  Postgres always handles joins by combining
two tables, then combining the result with another table, etc.
        regards, tom lane


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

Предыдущее
От: "ZHENG, PHILLIP"
Дата:
Сообщение: Outer Join Two Tables
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [SQL] Column name's length