1 set enable_seqscan=off;
2 CREATE TABLE test_text (
5 INSERT INTO test_text VALUES ('aaa'),('a'),('abc'),('abb'),('axy'),('xyz');
6 CREATE INDEX idx_text ON test_text USING gin (i);
7 SELECT * FROM test_text WHERE i<'abc' ORDER BY i;
15 SELECT * FROM test_text WHERE i<='abc' ORDER BY i;
24 SELECT * FROM test_text WHERE i='abc' ORDER BY i;
30 SELECT * FROM test_text WHERE i>='abc' ORDER BY i;
38 SELECT * FROM test_text WHERE i>'abc' ORDER BY i;