From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Gregory Stark <stark(at)enterprisedb(dot)com> |
Cc: | "Chris Mayfield" <cmayfiel(at)cs(dot)purdue(dot)edu>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: Merge Joins and Views |
Date: | 2008-03-29 16:15:20 |
Message-ID: | 8713.1206807320@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Gregory Stark <stark(at)enterprisedb(dot)com> writes:
> "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:
>> Don't hold your breath though --- it'll take major planner surgery.
> In this case isn't all the planner needs the pathkey list to give it a hint
> that that ordering might be useful?
You could maybe make that work if you were willing to speculatively
re-plan the entire subquery for each potentially useful ordering.
I think that would chew an unacceptable number of cycles though.
The upper planner doesn't have any clue about what indexes are available
in the lower query, so it would end up requesting a lot of useless
re-plans.
In any case the nullable-targetlist restriction causes a whole lot
of other problems that this wouldn't address. I'd rather spend my
time on solving the more general problem.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2008-03-29 16:28:13 | Re: Merge Joins and Views |
Previous Message | Gregory Stark | 2008-03-29 14:28:42 | Re: Merge Joins and Views |