Re: optimizing away join when querying view

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jacob Costello <jake(at)suntradingllc(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: optimizing away join when querying view
Date: 2006-02-08 15:37:37
Message-ID: 7893.1139413057@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Jacob Costello <jake(at)suntradingllc(dot)com> writes:
> Postgres doesn't seem to optimize away unnecessary joins

There is no such thing as an unnecessary join, unless you are willing to
stake the correctness of the query on constraints that could be dropped
after the query is planned. Until we have some infrastructure to deal
with that situation, nothing like this is going to happen.

regards, tom lane

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Stephan Szabo 2006-02-08 15:46:39 Re: optimizing away join when querying view
Previous Message Ron 2006-02-08 14:11:11 Size and performance hit from using UTF8 vs. ASCII?