3 CREATE TABLE intervaltmp (a interval);
5 \copy intervaltmp from 'data/interval.data'
9 SELECT count(*) FROM intervaltmp WHERE a < '199 days 21:21:23';
11 SELECT count(*) FROM intervaltmp WHERE a <= '199 days 21:21:23';
13 SELECT count(*) FROM intervaltmp WHERE a = '199 days 21:21:23';
15 SELECT count(*) FROM intervaltmp WHERE a >= '199 days 21:21:23';
17 SELECT count(*) FROM intervaltmp WHERE a > '199 days 21:21:23';
19 CREATE INDEX intervalidx ON intervaltmp USING gist ( a );
21 SET enable_seqscan=off;
23 SELECT count(*) FROM intervaltmp WHERE a < '199 days 21:21:23'::interval;
25 SELECT count(*) FROM intervaltmp WHERE a <= '199 days 21:21:23'::interval;
27 SELECT count(*) FROM intervaltmp WHERE a = '199 days 21:21:23'::interval;
29 SELECT count(*) FROM intervaltmp WHERE a >= '199 days 21:21:23'::interval;
31 SELECT count(*) FROM intervaltmp WHERE a > '199 days 21:21:23'::interval;