Re: BOOLEAN question

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: BOOLEAN question
Дата
Msg-id 200210281729.35967.josh@agliodbs.com
обсуждение исходный текст
Ответ на Re: BOOLEAN question  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
Ответы Re: BOOLEAN question  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
Re: BOOLEAN question  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-sql
Stephan,

> Well, you might be better off making a max(bool), but a not
> super-efficient version might be:
>  max(case when col then 1 else 0 end)=1

Good, I'm not just brain-dead.   I did figure out another way to do it, but if
I wrote a MAX(bool), what are the chances it would get added to the core?   I
don't see any good reason not to have one.

--
-Josh BerkusAglio Database SolutionsSan Francisco



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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: BOOLEAN question
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: BOOLEAN question