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

From: Richard Huxton <dev(at)archonet(dot)com>
To: "Pollard, Mike" <mpollard(at)cincom(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: question about count(b) where b is a custom type
Date: 2005-11-16 13:12:42
Message-ID: 437B304A.1030806@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Pollard, Mike 2005-11-16 13:28:28 Re: question about count(b) where b is a custom type
Previous Message Pollard, Mike 2005-11-16 12:54:25 Re: question about count(b) where b is a custom type