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