minor bug... - Mailing list pgsql-hackers

From Don Baccus
Subject minor bug...
Date
Msg-id 3.0.1.32.20000208183105.0108bd60@mail.pacifier.com
Whole thread Raw
Responses Re: [HACKERS] minor bug...  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
create table foo(b boolean);
create index foo_index on foo(b);

You get a "no default operator for type 16." error...

This ecommerce datamodel I'm porting over uses such indices 
frequently, apparently to grab small subsets of large tables which
have few rows with the predicate set to one state.  Even if such
an index might be of dubious usefulness in situations where
the table's population is more evenly split, there's no real
reason not to support indexes on booleans, is there?



- Don Baccus, Portland OR <dhogaza@pacifier.com> Nature photos, on-line guides, Pacific Northwest Rare Bird Alert
Serviceand other goodies at http://donb.photo.net.
 


pgsql-hackers by date:

Previous
From: Chris Bitmead
Date:
Subject: Regression tests
Next
From: Tatsuo Ishii
Date:
Subject: VxWorks ports?