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