From: Christopher Kings-Lynne <chriskl@familyhealth.com.au>
To: D. Dante Lorenso <dante@lorenso.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Indexing a Boolean or Null column?
Date: Sun, 04 Jan 2004 15:21:01 +0800
Message-ID: <3FF7BEDD.7050208@familyhealth.com.au> (raw)
In-Reply-To: <3FF7A395.4050106@lorenso.com>
References: <3FF769EA.7090508@lorenso.com>
<3FF79764.6060805@familyhealth.com.au>
<3FF7A395.4050106@lorenso.com>
> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: chriskl@familyhealth.com.au, dante@lorenso.com
Subject: Re: Indexing a Boolean or Null column?
In-Reply-To: <3FF7BEDD.7050208@familyhealth.com.au>
References: <3FF769EA.7090508@lorenso.com> <3FF79764.6060805@familyhealth.com.au> <3FF7A395.4050106@lorenso.com> <3FF7BEDD.7050208@familyhealth.com.au>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox