From: Tom Lane <tgl@sss.pgh.pa.us>
To: Marc G. Fournier <scrappy@postgresql.org>
Cc: pgsql-sql@postgresql.org
Subject: Re: Putting an INDEX on a boolean field?
Date: Fri, 17 Jun 2005 00:41:49 -0400
Message-ID: <15887.1118983309@sss.pgh.pa.us> (raw)
In-Reply-To: <20050617011336.Q90456@ganymede.hub.org>
References: <20050617011336.Q90456@ganymede.hub.org>
"Marc G. Fournier" <scrappy@postgresql.org> writes:
> Does that make sense? Would it ever get used?
It could get used if one of the two values is far less frequent than the
other. Personally I'd think about a partial index instead ...
regards, tom lane
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, scrappy@postgresql.org
Subject: Re: Putting an INDEX on a boolean field?
In-Reply-To: <15887.1118983309@sss.pgh.pa.us>
* 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