Re: select count(*) from anIntColumn where int_value = 0; - Mailing list pgsql-performance

From scott.marlowe
Subject Re: select count(*) from anIntColumn where int_value = 0;
Date
Msg-id Pine.LNX.4.33.0402110901580.32376-100000@css120.ihs.com
Whole thread Raw
In response to Re: select count(*) from anIntColumn where int_value = 0; is very slow  (David Teran <david.teran@cluster9.com>)
Responses Re: select count(*) from anIntColumn where int_value =  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
List pgsql-performance
On Wed, 11 Feb 2004, David Teran wrote:

> Hi,
>
> > Is your int_value data type int4? If not then use "... from
> > job_property
> > where int_value = '0'"
> > Indexes are used only if datatypes matches.
> >
> tried those variations already. Strange enough, after dropping and
> recreating the index everything worked fine.

Has that table been updated a lot in its life?  If so, it may have had a
problem with index bloat...


pgsql-performance by date:

Previous
From: Richard Huxton
Date:
Subject: Re: update performance
Next
From: alemon@tiago.hazor.com.br
Date:
Subject: Re: slow database