do unneeded outer joins cost?

From: chester c young <chestercyoung(at)yahoo(dot)com>
To: sql pgsql <pgsql-sql(at)postgresql(dot)org>
Subject: do unneeded outer joins cost?
Date: 2009-06-05 15:01:51
Message-ID: 886808.30289.qm@web54302.mail.re2.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


for example:

select t1.*
from t1
left join t2 on( <expensive condition> );

since t2 is not used in the result nor is it used in determining the result, is the <expensive condition> to left join t2 used?

(the question goes as to how much generated sql needs to be cleaned to be efficient)

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Gianvito Pio 2009-06-05 15:13:10 Re: Type inheritance
Previous Message Tom Lane 2009-06-05 13:48:29 Re: Type inheritance