Thanks to visit codestin.com
Credit goes to postgrespro.com

Re: Hash and bools - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Hash and bools
Date
Msg-id [email protected]
Whole thread Raw
In response to Hash and bools  (Scott Marlowe <[email protected]>)
List pgsql-hackers
Scott Marlowe <[email protected]> writes:
> During the discussion of bools and hash index and partial indexes and 
> index growth and everything else, I tried to make a partial index on a 
> bool field and got the error that "data type bool has no default operator 
> for class hash..."

Well, no.  I can't see much point in hashing for a datatype with only
two values.  (Of course, btree probably sucks too in this case.)

You could probably gin one up pretty quickly using the support routines
for char_ops, if you want one for testing.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Robert Kernell"
Date:
Subject: computer for todo list
Next
From: "J. R. Nield"
Date:
Subject: Re: Index Scans become Seq Scans after VACUUM ANALYSE