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