2 CREATE TABLE moneytmp (a money) WITH OIDS;
3 \copy moneytmp from 'data/cash.data'
5 SELECT count(*) FROM moneytmp WHERE a < '22649.64';
11 SELECT count(*) FROM moneytmp WHERE a <= '22649.64';
17 SELECT count(*) FROM moneytmp WHERE a = '22649.64';
23 SELECT count(*) FROM moneytmp WHERE a >= '22649.64';
29 SELECT count(*) FROM moneytmp WHERE a > '22649.64';
35 CREATE INDEX moneyidx ON moneytmp USING gist ( a );
36 SET enable_seqscan=off;
37 SELECT count(*) FROM moneytmp WHERE a < '22649.64'::money;
43 SELECT count(*) FROM moneytmp WHERE a <= '22649.64'::money;
49 SELECT count(*) FROM moneytmp WHERE a = '22649.64'::money;
55 SELECT count(*) FROM moneytmp WHERE a >= '22649.64'::money;
61 SELECT count(*) FROM moneytmp WHERE a > '22649.64'::money;