Re: count * performance issue - Mailing list pgsql-performance

From Tino Wildenhain
Subject Re: count * performance issue
Date
Msg-id 47D690A2.2090509@wildenhain.de
Whole thread Raw
In response to Re: count * performance issue  (Matthew <matthew@flymine.org>)
Responses Re: count * performance issue  (Matthew <matthew@flymine.org>)
List pgsql-performance
Hi,

Matthew wrote:
> On Tue, 11 Mar 2008, Bill Moran wrote:
>
>> In response to "Robins Tharakan" <tharakan@gmail.com>:
>>> Sorry, if I am missing something here, but shouldn't something like this
>>> allow us to get a (fast) accurate count ?
>>>
>>> SELECT COUNT(*) from table WHERE indexed_field IS NULL
>>> +
>>> SELECT COUNT(*) from table WHERE indexed_field IS NOT NULL
>>
>> For certain, qualified definitions of "fast", sure.
>
> And certain, qualified definitions of "accurate" as well. Race condition?

You mean in a three-state-logic? null, not null and something different?

;-)

Tino

pgsql-performance by date:

Previous
From: Matthew
Date:
Subject: Re: count * performance issue
Next
From: Matthew
Date:
Subject: Re: count * performance issue