1 set enable_seqscan=off;
3 CREATE TABLE test_char (
7 INSERT INTO test_char VALUES ('a'),('b'),('c'),('d'),('e'),('f');
9 CREATE INDEX idx_char ON test_char USING gin (i);
11 SELECT * FROM test_char WHERE i<'d'::"char" ORDER BY i;
12 SELECT * FROM test_char WHERE i<='d'::"char" ORDER BY i;
13 SELECT * FROM test_char WHERE i='d'::"char" ORDER BY i;
14 SELECT * FROM test_char WHERE i>='d'::"char" ORDER BY i;
15 SELECT * FROM test_char WHERE i>'d'::"char" ORDER BY i;