Re: index over boolean fields? - Mailing list pgsql-novice

From Jaime Casanova
Subject Re: index over boolean fields?
Date
Msg-id c2d9e70e0601051223y31b6b723kd7107128e150d6f4@mail.gmail.com
Whole thread Raw
In response to index over boolean fields?  (<me@alternize.com>)
List pgsql-novice
On 1/5/06, me@alternize.com <me@alternize.com> wrote:
> hi list
>
> does an index over a boolean field make sense performance-wise? 1/3 of all
> records are set to true... what index type if any would be best?
>
> thanks,
> thomas

only if you create a partial index, using the expression that will
contain the smallest fraction of values...

but for a third part of the records i don't think it will be a win...

--
Atentamente,
Jaime Casanova
(DBA: DataBase Aniquilator ;)

pgsql-novice by date:

Previous
From:
Date:
Subject: index over boolean fields?
Next
From: Ketema Harris
Date:
Subject: Re: Best Type to use