3 CREATE TABLE macaddrtmp (a macaddr);
5 \copy macaddrtmp from 'data/macaddr.data'
9 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';
13 SELECT count(*) FROM macaddrtmp WHERE a = '22:00:5c:e5:9b:0d';
15 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';
19 CREATE INDEX macaddridx ON macaddrtmp USING gist ( a );
21 SET enable_seqscan=off;
23 SELECT count(*) FROM macaddrtmp WHERE a < '22:00:5c:e5:9b:0d'::macaddr;
25 SELECT count(*) FROM macaddrtmp WHERE a <= '22:00:5c:e5:9b:0d'::macaddr;
27 SELECT count(*) FROM macaddrtmp WHERE a = '22:00:5c:e5:9b:0d'::macaddr;
29 SELECT count(*) FROM macaddrtmp WHERE a >= '22:00:5c:e5:9b:0d'::macaddr;
31 SELECT count(*) FROM macaddrtmp WHERE a > '22:00:5c:e5:9b:0d'::macaddr;