Re: Indexing a Boolean or Null column? - Mailing list pgsql-performance

From Christopher Kings-Lynne
Subject Re: Indexing a Boolean or Null column?
Date
Msg-id 3FF7BEDD.7050208@familyhealth.com.au
Whole thread Raw
In response to Re: Indexing a Boolean or Null column?  ("D. Dante Lorenso" <dante@lorenso.com>)
List 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


pgsql-performance by date:

Previous
From: "D. Dante Lorenso"
Date:
Subject: Re: Indexing a Boolean or Null column?
Next
From: Christopher Kings-Lynne
Date:
Subject: Re: Indexing a Boolean or Null column?