From: Christopher Kings-Lynne <chriskl@familyhealth.com.au>
To: scott.marlowe <scott.marlowe@ihs.com>
Cc: David Teran <david.teran@cluster9.com>
Cc: Rigmor Ukuhe <rigmor.ukuhe@finestmedia.com>
Cc: PgSQL Performance ML <pgsql-performance@postgresql.org>
Subject: Re: select count(*) from anIntColumn where int_value =
Date: Thu, 12 Feb 2004 10:01:49 +0800
Message-ID: <402ADE8D.1090802@familyhealth.com.au> (raw)
In-Reply-To: <Pine.LNX.4.33.0402110901580.32376-100000@css120.ihs.com>
References: <Pine.LNX.4.33.0402110901580.32376-100000@css120.ihs.com>
>>>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...
Try creating a partial index: create index blah on tablw where int_value=0;
Chris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: chriskl@familyhealth.com.au, scott.marlowe@ihs.com, david.teran@cluster9.com, rigmor.ukuhe@finestmedia.com
Subject: Re: select count(*) from anIntColumn where int_value =
In-Reply-To: <402ADE8D.1090802@familyhealth.com.au>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox