Re: [HACKERS] minor bug... - Mailing list pgsql-hackers

From Hannu Krosing
Subject Re: [HACKERS] minor bug...
Date
Msg-id 38A2A3D9.96879708@tm.ee
Whole thread Raw
In response to minor bug...  (Don Baccus <dhogaza@pacifier.com>)
List pgsql-hackers
Thomas Lockhart wrote:
> 
> > > ... there's no real reason not to support indexes on booleans, is
> > > there?
> 
> afaict the only case where this would be a win is if there is a *very*
> skewed distribution of boolean values, and you *only* want the
> uncommon one. Otherwise, looking up half the rows in a table via index
> has got to be worse than just scanning the table.

One (maybe only) case I can see use for it is for a multi-field index 
containing many booleans (say an index over 16 boolean fields).

------------
Hannu


pgsql-hackers by date:

Previous
From: Richa Singh
Date:
Subject: Jdbc and Postfresql-6.5.3 on RedHat 6.1
Next
From: Chris
Date:
Subject: libpq