Re: omitting redundant join predicate - Mailing list pgsql-sql

From Tom Lane
Subject Re: omitting redundant join predicate
Date
Msg-id 20749.1194278893@sss.pgh.pa.us
Whole thread Raw
In response to Re: omitting redundant join predicate  (Ehab Galal <ehabgalal123@hotmail.com>)
List 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 by date:

Previous
From: Gregory Stark
Date:
Subject: Re: Returning the total number of rows as a separate column when using limit
Next
From: Andreas Joseph Krogh
Date:
Subject: Re: Returning the total number of rows as a separate column when using limit