1 set enable_seqscan=off;
2 CREATE TABLE test_varbit (
5 INSERT INTO test_varbit VALUES ('001'),('010'),('011'),('100'),('101'),('110');
6 CREATE INDEX idx_varbit ON test_varbit USING gin (i);
7 SELECT * FROM test_varbit WHERE i<'100'::varbit ORDER BY i;
15 SELECT * FROM test_varbit WHERE i<='100'::varbit ORDER BY i;
24 SELECT * FROM test_varbit WHERE i='100'::varbit ORDER BY i;
30 SELECT * FROM test_varbit WHERE i>='100'::varbit ORDER BY i;
38 SELECT * FROM test_varbit WHERE i>'100'::varbit ORDER BY i;