Re: Performance weirdness with/without vacuum analyze

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: Performance weirdness with/without vacuum analyze
Дата
Msg-id 87fzhx2g04.fsf@stark.dyndns.tv
обсуждение исходный текст
Ответ на Re: Performance weirdness with/without vacuum analyze  (Harry Broomhall <harry.broomhall@uk.easynet.net>)
Список pgsql-general
Harry Broomhall <harry.broomhall@uk.easynet.net> writes:

>    I'm not entirely sure how I would do this, as the 'lookup' is actualy
> a join.  I thought that the order of nameing the joined tables didn't
> matter (except for 'left' and 'right'), similar to the fact that 1 + 2 is
> the same as 2 + 1.

Outer joins are commutative (1+2 == 2+1) at least barring the left/right
issue. But they are not associative. (1+2)+3 != 1+(2+3).

There are cases where the optimizer could prove a particular set of joins
could be reordered this way, but it doesn't know how to do that currently.

--
greg

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

Предыдущее
От: Gene Vital
Дата:
Сообщение: Re: Pgsql on Windows
Следующее
От: Mike Mascari
Дата:
Сообщение: Re: Pgsql on Windows