Re: omitting redundant join predicate

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: omitting redundant join predicate
Дата
Msg-id 20749.1194278893@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: omitting redundant join predicate  (Ehab Galal <ehabgalal123@hotmail.com>)
Список pgsql-sql
Ehab Galal <ehabgalal123@hotmail.com> writes:
> what i expected is that the optimizer will use the redundant predicates
> to create the plan, but the execution plan itself will not execute a
> redundant predicate. 

> O! I see, it's my mistake. The example i mentioned was not a good example. I tried the equality and it is working
well:)
 

The planner has a great deal more smarts about equality conditions than
inequality conditions.  There's more you can do with equalities, and
it's more useful for typical queries.

> I am using postgresql 8.5.1, I am wondering is there is any patch that
> i can run to enable it to put the actual table names instead of
> inner/outer.

Update to 8.2.
        regards, tom lane


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

Предыдущее
От: Gregory Stark
Дата:
Сообщение: Re: Returning the total number of rows as a separate column when using limit
Следующее
От: Andreas Joseph Krogh
Дата:
Сообщение: Re: Returning the total number of rows as a separate column when using limit