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

Поиск
Список
Период
Сортировка
От Vik Reykja
Тема Re: Pushing IN (subquery) down through UNION ALL?
Дата
Msg-id AANLkTik9bt8Yu1SxbexqZt=fJifG9nKtM6Oqck650Zp+@mail.gmail.com
обсуждение исходный текст
Ответ на Pushing IN (subquery) down through UNION ALL?  (Dave Johansen <davejohansen@gmail.com>)
Ответы Re: Pushing IN (subquery) down through UNION ALL?  (Dave Johansen <davejohansen@gmail.com>)
Список pgsql-performance
On Thu, Feb 24, 2011 at 16:14, Dave Johansen <davejohansen@gmail.com> wrote:
You'll notice that the subquery version is doing the full join and then the filtering, but the explicitly listed version pushing the filtering into the plan before the join. Is there a way to make the subquery version perform the same optimization?

EXPLAIN ANALYZE SELECT * FROM addressesall WHERE id = ANY (array(SELECT id FROM users WHERE name='A'));

(Tested on 9.0.3)

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

Предыдущее
От: Greg Smith
Дата:
Сообщение: Re: Unused indices
Следующее
От: Shaun Thomas
Дата:
Сообщение: Re: Unused indices