3 CREATE TABLE vchartmp (a varchar(32));
5 \copy vchartmp from 'data/char.data'
9 SELECT count(*) FROM vchartmp WHERE a < '31b0'::varchar(32);
11 SELECT count(*) FROM vchartmp WHERE a <= '31b0'::varchar(32);
13 SELECT count(*) FROM vchartmp WHERE a = '31b0'::varchar(32);
15 SELECT count(*) FROM vchartmp WHERE a >= '31b0'::varchar(32);
17 SELECT count(*) FROM vchartmp WHERE a > '31b0'::varchar(32);
19 CREATE INDEX vcharidx ON vchartmp USING GIST ( text(a) );
21 SET enable_seqscan=off;
23 SELECT count(*) FROM vchartmp WHERE a < '31b0'::varchar(32);
25 SELECT count(*) FROM vchartmp WHERE a <= '31b0'::varchar(32);
27 SELECT count(*) FROM vchartmp WHERE a = '31b0'::varchar(32);
29 SELECT count(*) FROM vchartmp WHERE a >= '31b0'::varchar(32);
31 SELECT count(*) FROM vchartmp WHERE a > '31b0'::varchar(32);