From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Scott Marlowe <scott(dot)marlowe(at)ihs(dot)com> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Hash and bools |
Date: | 2002-06-22 21:45:09 |
Message-ID: | 4754.1024782309@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Scott Marlowe <scott(dot)marlowe(at)ihs(dot)com> 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
From | Date | Subject | |
---|---|---|---|
Next Message | J. R. Nield | 2002-06-22 22:22:58 | Re: Index Scans become Seq Scans after VACUUM ANALYSE |
Previous Message | Tom Lane | 2002-06-22 20:56:29 | Re: Reduce heap tuple header size |