Re: LATERAL quals revisited

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: LATERAL quals revisited
Дата
Msg-id 6846.1372258456@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: LATERAL quals revisited  (Antonin Houska <antonin.houska@gmail.com>)
Список pgsql-hackers
Antonin Houska <antonin.houska@gmail.com> writes:
> If the WHERE clause moves up, then the resulting plan might be less 
> efficient than the one we'd get if the subquery hadn't been pulled-up at 
> all.

No, because we can push the qual back down again (using a parameterized
path) if that's appropriate.  The problem at this stage is to understand
the semantics of the outer join correctly, not to make a choice of what
the plan will be.

In fact, the reason we'd not noticed this bug before is exactly that
all the test cases in the regression tests do end up pushing the qual
back down.
        regards, tom lane



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: Bugfix and new feature for PGXS
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Computer VARSIZE_ANY(PTR) during debugging