Re: Putting an INDEX on a boolean field?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Marc G(dot) Fournier" <scrappy(at)postgresql(dot)org>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Putting an INDEX on a boolean field?
Date: 2005-06-17 04:41:49
Message-ID: 15887.1118983309@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

"Marc G. Fournier" <scrappy(at)postgresql(dot)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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Marc G. Fournier 2005-06-17 05:04:12 Re: Putting an INDEX on a boolean field?
Previous Message David Dick 2005-06-17 04:35:45 Re: Putting an INDEX on a boolean field?