1 set enable_seqscan=off;
3 CREATE TABLE test_int8 (
7 INSERT INTO test_int8 VALUES (-2),(-1),(0),(1),(2),(3);
9 CREATE INDEX idx_int8 ON test_int8 USING gin (i);
11 SELECT * FROM test_int8 WHERE i<1::int8 ORDER BY i;
12 SELECT * FROM test_int8 WHERE i<=1::int8 ORDER BY i;
13 SELECT * FROM test_int8 WHERE i=1::int8 ORDER BY i;
14 SELECT * FROM test_int8 WHERE i>=1::int8 ORDER BY i;
15 SELECT * FROM test_int8 WHERE i>1::int8 ORDER BY i;