Re: Optimisation of INTERSECT expressions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Optimisation of INTERSECT expressions
Дата
Msg-id 20715.1080056862@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Optimisation of INTERSECT expressions  (Stephan Szabo <sszabo@megazone.bigpanda.com>)
Список pgsql-performance
Stephan Szabo <sszabo@megazone.bigpanda.com> writes:
> Given a non-unique A, C1 as B>5, c2 as C>5 and the data:
> A | B | C
> 1 | 6 | 1
> 1 | 1 | 6
> The intersect gives 1 row, the and query gives 0 AFAICS.

Another way that the queries are not equivalent is that INTERSECT is
defined to remove duplicate output rows (much like DISTINCT) whereas
the AND form of course won't do that.

            regards, tom lane

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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: Optimisation of INTERSECT expressions
Следующее
От: "Rosser Schwarz"
Дата:
Сообщение: Re: atrocious update performance