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