Re: optimizing queries using IN and EXISTS

Поиск
Список
Период
Сортировка
От Peter Geoghegan
Тема Re: optimizing queries using IN and EXISTS
Дата
Msg-id CAEYLb_XxqdVKH9L1NBjk6yxhdKi-QMUrHi7KC14KbdS4cwuzDw@mail.gmail.com
обсуждение исходный текст
Ответ на optimizing queries using IN and EXISTS  (Nick Hofstede <Nick.Hofstede@inventivegroup.com>)
Ответы Re: optimizing queries using IN and EXISTS
Список pgsql-performance
On 18 July 2012 17:10, Nick Hofstede <Nick.Hofstede@inventivegroup.com> wrote:
> Hi,
>
> I'm surprised at the difference in speed/execution plan between two logically equivalent queries, one using IN, the
otherusing EXISTS. (At least I think they are logically equivalent) 

They are not logically equivalent.

http://www.postgresql.org/docs/current/static/functions-subquery.html

See the notes about NULL under IN.

--
Peter Geoghegan       http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training and Services

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

Предыдущее
От: Nick Hofstede
Дата:
Сообщение: optimizing queries using IN and EXISTS
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Array fundamentals