Re: question about count(b) where b is a custom type

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: question about count(b) where b is a custom type
Дата
Msg-id 437B304A.1030806@archonet.com
обсуждение исходный текст
Ответ на Re: question about count(b) where b is a custom type  ("Pollard, Mike" <mpollard@cincom.com>)
Список pgsql-hackers
Pollard, Mike wrote:
>>Firstly, if you just want a count, what's wrong with count(1) or
>>count(*).
>>
> 
> 
> Because unless the column does not allow nulls, they will not return the
> same value.

Ah, but in the example given the column was being matched against a 
value, so nulls were already excluded.

--   Richard Huxton  Archonet Ltd


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

Предыдущее
От: "Pollard, Mike"
Дата:
Сообщение: Re: question about count(b) where b is a custom type
Следующее
От: "Pollard, Mike"
Дата:
Сообщение: Re: question about count(b) where b is a custom type