From: Tom Lane <tgl@sss.pgh.pa.us>
To: Greg Stark <gsstark@mit.edu>
Cc: Richard Huxton <dev@archonet.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Planner matching constants across tables in a join
Date: Wed, 05 Mar 2003 10:08:38 -0500
Message-ID: <19225.1046876918@sss.pgh.pa.us> (raw)
In-Reply-To: <87bs0q9e8l.fsf@stark.dyndns.tv>
References: <200303051113.14320.dev@archonet.com>
<87bs0q9e8l.fsf@stark.dyndns.tv>
Greg Stark <gsstark@mit.edu> writes:
> Richard Huxton <dev@archonet.com> writes:
>> If I join two tables with a comparison to a constant on one, why can't the
>> planner see that the comparison applies to both tables:
> It sure does. Postgres does an impressive job of tracing equality clauses
> around for just this purpose.
CVS tip does. Existing releases don't...
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: tgl@sss.pgh.pa.us, gsstark@mit.edu, dev@archonet.com
Subject: Re: Planner matching constants across tables in a join
In-Reply-To: <19225.1046876918@sss.pgh.pa.us>
References: <200303051113.14320.dev@archonet.com> <87bs0q9e8l.fsf@stark.dyndns.tv> <19225.1046876918@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