3 CREATE TABLE bittmp (a bit(33));
5 \copy bittmp from 'data/bit.data'
9 SELECT count(*) FROM bittmp WHERE a < '011011000100010111011000110000100';
11 SELECT count(*) FROM bittmp WHERE a <= '011011000100010111011000110000100';
13 SELECT count(*) FROM bittmp WHERE a = '011011000100010111011000110000100';
15 SELECT count(*) FROM bittmp WHERE a >= '011011000100010111011000110000100';
17 SELECT count(*) FROM bittmp WHERE a > '011011000100010111011000110000100';
19 CREATE INDEX bitidx ON bittmp USING GIST ( a );
21 SET enable_seqscan=off;
23 SELECT count(*) FROM bittmp WHERE a < '011011000100010111011000110000100';
25 SELECT count(*) FROM bittmp WHERE a <= '011011000100010111011000110000100';
27 SELECT count(*) FROM bittmp WHERE a = '011011000100010111011000110000100';
29 SELECT count(*) FROM bittmp WHERE a >= '011011000100010111011000110000100';
31 SELECT count(*) FROM bittmp WHERE a > '011011000100010111011000110000100';