Re: Indexing a boolean

From: Renney Thomas <renneyt(at)yahoo(dot)com>
To:
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Indexing a boolean
Date: 2003-08-23 04:14:11
Message-ID: 3F46EA13.9030306@yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

scott.marlowe wrote:

>On Thu, 21 Aug 2003, Kris Kiger wrote:
>
>
>>I would appreciate it if I could get some thoughts on indexing a field
>>with only two values? For example, I have a table with a few million
>>

>>Often the best approach here is to make a partial index:
>>
>>create index table_dx on table (bool_field) where bool_field IS TRUE;
>>
>>This works well if you have a large portion of the boolean fields set to
>>FALSE, and want to find the few that are TRUE. Reverse the TRUE and false
>>for other situations.
>>
>>
>>

When will PGSql have bitmapped indexes for these cases - like Oracle?
Will it be in a release sometime soon?

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Chris M 2003-08-23 16:38:35 Re: template1 database...
Previous Message Nikolaus Dilger 2003-08-22 22:48:01 Re: Partial indexes (was: Re: Indexing a boolean)