2 CREATE TABLE inettmp (a inet);
3 \copy inettmp from 'data/inet.data'
5 SELECT count(*) FROM inettmp WHERE a < '89.225.196.191';
11 SELECT count(*) FROM inettmp WHERE a <= '89.225.196.191';
17 SELECT count(*) FROM inettmp WHERE a = '89.225.196.191';
23 SELECT count(*) FROM inettmp WHERE a >= '89.225.196.191';
29 SELECT count(*) FROM inettmp WHERE a > '89.225.196.191';
35 CREATE INDEX inetidx ON inettmp USING gist ( a );
36 SET enable_seqscan=off;
37 SELECT count(*) FROM inettmp WHERE a < '89.225.196.191'::inet;
43 SELECT count(*) FROM inettmp WHERE a <= '89.225.196.191'::inet;
49 SELECT count(*) FROM inettmp WHERE a = '89.225.196.191'::inet;
55 SELECT count(*) FROM inettmp WHERE a >= '89.225.196.191'::inet;
61 SELECT count(*) FROM inettmp WHERE a > '89.225.196.191'::inet;