3 CREATE TABLE moneytmp (a money) WITH OIDS;
5 \copy moneytmp from 'data/cash.data'
9 SELECT count(*) FROM moneytmp WHERE a < '22649.64';
11 SELECT count(*) FROM moneytmp WHERE a <= '22649.64';
13 SELECT count(*) FROM moneytmp WHERE a = '22649.64';
15 SELECT count(*) FROM moneytmp WHERE a >= '22649.64';
17 SELECT count(*) FROM moneytmp WHERE a > '22649.64';
19 CREATE INDEX moneyidx ON moneytmp USING gist ( a );
21 SET enable_seqscan=off;
23 SELECT count(*) FROM moneytmp WHERE a < '22649.64'::money;
25 SELECT count(*) FROM moneytmp WHERE a <= '22649.64'::money;
27 SELECT count(*) FROM moneytmp WHERE a = '22649.64'::money;
29 SELECT count(*) FROM moneytmp WHERE a >= '22649.64'::money;
31 SELECT count(*) FROM moneytmp WHERE a > '22649.64'::money;