Optimizer question with equivalent joins

From: Dirk Lutzebaeck <lutzeb(at)aeccom(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Optimizer question with equivalent joins
Date: 2002-06-21 14:26:03
Message-ID: 15635.14203.405079.671597@cayambe.core.aeccom.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


Hello,

say I have a join which says

t.a = t.b and t.b = t.c

do I need to give the optimizer a hint by saying it more redundantly

t.a = t.b and t.b = t.c and t.c = t.a

or is this just counter productive because there is one more join?

In the real world I have 10-20 equivalent joins which would really
blow up if I have to choose the second option.

Dirk

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Luis Andaluz P, 2002-06-21 14:57:20 Incredible..
Previous Message Jan Wieck 2002-06-21 13:22:27 Re: how to sort a birthday list ?