1 set enable_seqscan=off;
2 CREATE TABLE test_numeric (
5 INSERT INTO test_numeric VALUES (-2),(-1),(0),(1),(2),(3);
6 CREATE INDEX idx_numeric ON test_numeric USING gin (i);
7 SELECT * FROM test_numeric WHERE i<'1'::numeric ORDER BY i;
15 SELECT * FROM test_numeric WHERE i<='1'::numeric ORDER BY i;
24 SELECT * FROM test_numeric WHERE i='1'::numeric ORDER BY i;
30 SELECT * FROM test_numeric WHERE i>='1'::numeric ORDER BY i;
38 SELECT * FROM test_numeric WHERE i>'1'::numeric ORDER BY i;