pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: chester c young <chestercyoung@yahoo.com>
To: sql pgsql <pgsql-sql@postgresql.org>
Subject: do unneeded outer joins cost?
Date: Fri, 5 Jun 2009 08:01:51 -0700 (PDT)
Message-ID: <886808.30289.qm@web54302.mail.re2.yahoo.com> (raw)


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)



      



view thread (2+ messages)  latest in thread

Message-ID: <886808.30289.qm@web54302.mail.re2.yahoo.com>
Permalink:  ../886808.30289.qm@web54302.mail.re2.yahoo.com/
Also on:    postgresql.org/message-id/886808.30289.qm@web54302.mail.re2.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: chestercyoung@yahoo.com
  Subject: Re: do unneeded outer joins cost?
  In-Reply-To: <886808.30289.qm@web54302.mail.re2.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox