From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jacob Costello <jake@suntradingllc.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: optimizing away join when querying view
Date: Wed, 08 Feb 2006 10:37:37 -0500
Message-ID: <7893.1139413057@sss.pgh.pa.us> (raw)
In-Reply-To: <1139406891.11389.60.camel@localhost.localdomain>
References: <1139406891.11389.60.camel@localhost.localdomain>
Jacob Costello <jake@suntradingllc.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
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-performance@postgresql.org
Cc: tgl@sss.pgh.pa.us, jake@suntradingllc.com
Subject: Re: optimizing away join when querying view
In-Reply-To: <7893.1139413057@sss.pgh.pa.us>
* 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