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