We only use partial Boolean indexes on large tables
or normal Boolean indexes on small (0-10M rows) queue tables that get cleared down.
On Tue, 5 Feb 2019 at 12:08, Bruce Momjian <bruce@momjian.us> wrote:
On Fri, Feb 1, 2019 at 10:49:13AM +1300, Saul, Jean Paolo wrote: > Hi Bruce, > > Thank you for that info. We will likely migrate our boolean indexes (and > possibly all our low cardinality indexes) to hash after we move to PG11.
Uh, there is rarely value in creating boolean indexes because, for an index to be useful, it should have high selectivity. What people often do is to create _partial_ indexes on true, false, or NULL values that are of high selectivity. Since there is only a single value in the index, I guess a hash index would be better than btree, but I am not sure.
+ As you are, so once was I. As I am, so you will be. + + Ancient Roman grave inscription +
PLEASE CONSIDER THE ENVIRONMENT BEFORE PRINTING THIS EMAIL
VERIZON CONNECT CONFIDENTIALITY NOTICE This message is intended for the addressee only and may contain confidential and/or privileged material. Any review, re-transmission, dissemination, reliance upon or other use of this information by persons or entities other than the addressee is prohibited. If you receive this in error, please contact the sender and delete this message. Thank you.