Re: Indexing a Boolean or Null column?

From: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
To: "D(dot) Dante Lorenso" <dante(at)lorenso(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Indexing a Boolean or Null column?
Date: 2004-01-04 07:21:01
Message-ID: 3FF7BEDD.7050208@familyhealth.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

> In this case, it WILL pay off to have the index on a boolean
> column, yes? Will I win my debate with my collegue? ;-)
>
> I think Tom Lanes suggestion of partial indexes is what I need to
> look into.

Yes, given that it will be highly skewed towards false entries, Tom's
suggestion is perfect.

Chris

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Christopher Kings-Lynne 2004-01-04 07:22:17 Re: Indexing a Boolean or Null column?
Previous Message D. Dante Lorenso 2004-01-04 05:24:37 Re: Indexing a Boolean or Null column?