mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
New version. Add support for int2, int8, float4, float8, timestamp with/without time zone, time with/without time zone, date, interval, oid, money and macaddr, char, varchar/text, bytea, numeric, bit, varbit, inet/cidr types for GiST
This commit is contained in:
66
contrib/btree_gist/expected/cash.out
Normal file
66
contrib/btree_gist/expected/cash.out
Normal file
@ -0,0 +1,66 @@
|
||||
-- money check
|
||||
CREATE TABLE moneytmp (a money) WITH OIDS;
|
||||
\copy moneytmp from 'data/cash.data'
|
||||
SET enable_seqscan=on;
|
||||
SELECT count(*) FROM moneytmp WHERE a < '22649.64';
|
||||
count
|
||||
-------
|
||||
289
|
||||
(1 row)
|
||||
|
||||
SELECT count(*) FROM moneytmp WHERE a <= '22649.64';
|
||||
count
|
||||
-------
|
||||
290
|
||||
(1 row)
|
||||
|
||||
SELECT count(*) FROM moneytmp WHERE a = '22649.64';
|
||||
count
|
||||
-------
|
||||
1
|
||||
(1 row)
|
||||
|
||||
SELECT count(*) FROM moneytmp WHERE a >= '22649.64';
|
||||
count
|
||||
-------
|
||||
254
|
||||
(1 row)
|
||||
|
||||
SELECT count(*) FROM moneytmp WHERE a > '22649.64';
|
||||
count
|
||||
-------
|
||||
253
|
||||
(1 row)
|
||||
|
||||
CREATE INDEX moneyidx ON moneytmp USING gist ( a );
|
||||
SET enable_seqscan=off;
|
||||
SELECT count(*) FROM moneytmp WHERE a < '22649.64'::money;
|
||||
count
|
||||
-------
|
||||
289
|
||||
(1 row)
|
||||
|
||||
SELECT count(*) FROM moneytmp WHERE a <= '22649.64'::money;
|
||||
count
|
||||
-------
|
||||
290
|
||||
(1 row)
|
||||
|
||||
SELECT count(*) FROM moneytmp WHERE a = '22649.64'::money;
|
||||
count
|
||||
-------
|
||||
1
|
||||
(1 row)
|
||||
|
||||
SELECT count(*) FROM moneytmp WHERE a >= '22649.64'::money;
|
||||
count
|
||||
-------
|
||||
254
|
||||
(1 row)
|
||||
|
||||
SELECT count(*) FROM moneytmp WHERE a > '22649.64'::money;
|
||||
count
|
||||
-------
|
||||
253
|
||||
(1 row)
|
||||
|
Reference in New Issue
Block a user