Re: Pushing IN (subquery) down through UNION ALL?

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: Pushing IN (subquery) down through UNION ALL?
Дата
Msg-id AANLkTinM1gAqY2r5An+qG77bJkJu6H6GaRHRZ316d1sS@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Pushing IN (subquery) down through UNION ALL?  (Dave Johansen <davejohansen@gmail.com>)
Ответы Re: Pushing IN (subquery) down through UNION ALL?  (Thom Brown <thom@linux.com>)
Список pgsql-performance
On Thu, Feb 24, 2011 at 11:38 AM, Dave Johansen <davejohansen@gmail.com> wrote:
> I also just noticed that an ORDER BY x LIMIT n optimization is not pushed
> down through the UNION ALL as well. I understand that this may be a little
> trickier because the ORDER BY and LIMIT would need to be applied to the
> subqueries and then re-applied after the APPEND,

PostgreSQL 9.1 will know how to do this, FWIW.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

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

Предыдущее
От: Andy Colson
Дата:
Сообщение: Re: Performance trouble finding records through related records
Следующее
От: Thom Brown
Дата:
Сообщение: Re: Pushing IN (subquery) down through UNION ALL?