Re: Boolean operators without commutators vs. ALL/ANY

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: Boolean operators without commutators vs. ALL/ANY
Дата
Msg-id BANLkTik9R0ZMQ0-s4pN+TC+8C4jVCFGuaQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Boolean operators without commutators vs. ALL/ANY  (Alvaro Herrera <alvherre@commandprompt.com>)
Ответы Re: Boolean operators without commutators vs. ALL/ANY  (Florian Pflug <fgp@phlo.org>)
Список pgsql-hackers
On Fri, Jun 17, 2011 at 11:46 AM, Alvaro Herrera
<alvherre@commandprompt.com> wrote:
> I guess this wouldn't be much of a problem if you could use ANY/ALL with
> a function instead of an operator, c.f. map().

Yeah.  Or really what you want is a lambda-expression, rather than a
predefined function.

fold(bool_and, map { val ~ $0 } array)

I suspect that's darn hard to make work though.

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


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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: XPATH evaluation
Следующее
От: "Ross J. Reedstrom"
Дата:
Сообщение: Re: Boolean operators without commutators vs. ALL/ANY