1 set enable_seqscan=off;
3 CREATE TABLE test_inet (
7 INSERT INTO test_inet VALUES
16 CREATE INDEX idx_inet ON test_inet USING gin (i);
18 SELECT * FROM test_inet WHERE i<'1.2.6.4/16'::inet ORDER BY i;
19 SELECT * FROM test_inet WHERE i<='1.2.6.4/16'::inet ORDER BY i;
20 SELECT * FROM test_inet WHERE i='1.2.6.4/16'::inet ORDER BY i;
21 SELECT * FROM test_inet WHERE i>='1.2.6.4/16'::inet ORDER BY i;
22 SELECT * FROM test_inet WHERE i>'1.2.6.4/16'::inet ORDER BY i;