Re: WIP Join Removal - Mailing list pgsql-patches

From Simon Riggs
Subject Re: WIP Join Removal
Date
Msg-id 1220356430.4371.382.camel@ebony.2ndQuadrant
Whole thread Raw
In response to Re: WIP Join Removal  (Gregory Stark <stark@enterprisedb.com>)
List pgsql-patches
On Tue, 2008-09-02 at 12:05 +0100, Gregory Stark wrote:

> I wonder if it would be more worthwhile to remove them and have a
> subsequent phase where we look for possible joins to *add*. So even if
> the user writes
> "select * from invoices where customer_id=?" the planner might be able
> to discover that it can find those records quicker by scanning
> customer, finding the matching <company_id,customer_id> and then using
> an index to look them up in invoices.

That's a good idea.

--
 Simon Riggs           www.2ndQuadrant.com
 PostgreSQL Training, Services and Support


pgsql-patches by date:

Previous
From: Simon Riggs
Date:
Subject: Re: WIP Join Removal
Next
From: Simon Riggs
Date:
Subject: Re: WIP Join Removal