2 CREATE TABLE macaddrtmp (a macaddr);
3 \copy macaddrtmp from 'data/macaddr.data'
5 SELECT count(*) FROM macaddrtmp WHERE a < '22:00:5c:e5:9b:0d';
11 SELECT count(*) FROM macaddrtmp WHERE a <= '22:00:5c:e5:9b:0d';
17 SELECT count(*) FROM macaddrtmp WHERE a = '22:00:5c:e5:9b:0d';
23 SELECT count(*) FROM macaddrtmp WHERE a >= '22:00:5c:e5:9b:0d';
29 SELECT count(*) FROM macaddrtmp WHERE a > '22:00:5c:e5:9b:0d';
35 CREATE INDEX macaddridx ON macaddrtmp USING gist ( a );
36 SET enable_seqscan=off;
37 SELECT count(*) FROM macaddrtmp WHERE a < '22:00:5c:e5:9b:0d'::macaddr;
43 SELECT count(*) FROM macaddrtmp WHERE a <= '22:00:5c:e5:9b:0d'::macaddr;
49 SELECT count(*) FROM macaddrtmp WHERE a = '22:00:5c:e5:9b:0d'::macaddr;
55 SELECT count(*) FROM macaddrtmp WHERE a >= '22:00:5c:e5:9b:0d'::macaddr;
61 SELECT count(*) FROM macaddrtmp WHERE a > '22:00:5c:e5:9b:0d'::macaddr;