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