Re: Logical Aggregate Functions (eg ANY())

Поиск
Список
Период
Сортировка
От Marti Raudsepp
Тема Re: Logical Aggregate Functions (eg ANY())
Дата
Msg-id CABRT9RBN_LabYc+GGBD=3uCZPz70SyuiMHk2iDd0mG_vayiLYw@mail.gmail.com
обсуждение исходный текст
Ответ на Logical Aggregate Functions (eg ANY())  (Robert James <srobertjames@gmail.com>)
Ответы Re: Logical Aggregate Functions (eg ANY())
Список pgsql-general
On Thu, Dec 15, 2011 at 18:10, Robert James <srobertjames@gmail.com> wrote:
> How do I do the equivalent of an ANY() or ALL() in PG Aggregate SQL?

Note that in many cases, writing an EXISTS(SELECT ...) or NOT
EXISTS(...) subquery is faster, since the planner can often optimize
those to a single index access -- whereas an aggregate function would
necessarily need to walk through and evaluate all potential rows.

Regards,
Marti

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

Предыдущее
От: Scott Marlowe
Дата:
Сообщение: Re: LOCK DATABASE
Следующее
От: Chris Angelico
Дата:
Сообщение: Re: Philosophical question