Re: inner join removal
От | Tom Lane |
---|---|
Тема | Re: inner join removal |
Дата | |
Msg-id | 29761.1278615920@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: inner join removal (Robert Haas <robertmhaas@gmail.com>) |
Ответы |
Re: inner join removal
|
Список | pgsql-hackers |
Robert Haas <robertmhaas@gmail.com> writes: > On Thu, Jul 8, 2010 at 2:48 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote: >> I think it might work out better if you ask "what >> additional conditions are needed in order to prove that this inner join >> can commute with this left join", and then work at being able to prove >> that. �(It's entirely likely that the planner isn't currently gathering >> the right information for solving that problem.) > We have to avoid putting much of anything into the critical path where > we're trying out different join orders - we want to figure it out > earlier and, if possible, by examining each relation just once. Right, but look for example at the logic involved with the current outer join transformation identity #3, which can't be applied unless the join predicate is strict for the left-hand side. We avoid doing the dogwork to test that more than once. I'm hoping that something similar will work for this problem. But it's way premature to say much about that without a mathematical characterization of the extra conditions needed to make the joins commutable. regards, tom lane
В списке pgsql-hackers по дате отправления: