Fix xslt_process() to ensure that it inserts a NULL terminator after the
[PostgreSQL.git] / contrib / btree_gist / sql / float4.sql
blobfb4b726d22301bc2f08ad49bb37f4091ba2f6669
1 -- float4 check
3 CREATE TABLE float4tmp (a float4);
5 \copy float4tmp from 'data/float4.data'
7 SET enable_seqscan=on;
9 SELECT count(*) FROM float4tmp WHERE a <  -179.0;
11 SELECT count(*) FROM float4tmp WHERE a <= -179.0;
13 SELECT count(*) FROM float4tmp WHERE a  = -179.0;
15 SELECT count(*) FROM float4tmp WHERE a >= -179.0;
17 SELECT count(*) FROM float4tmp WHERE a >  -179.0;
19 CREATE INDEX float4idx ON float4tmp USING gist ( a );
21 SET enable_seqscan=off;
23 SELECT count(*) FROM float4tmp WHERE a <  -179.0::float4;
25 SELECT count(*) FROM float4tmp WHERE a <= -179.0::float4;
27 SELECT count(*) FROM float4tmp WHERE a  = -179.0::float4;
29 SELECT count(*) FROM float4tmp WHERE a >= -179.0::float4;
31 SELECT count(*) FROM float4tmp WHERE a >  -179.0::float4;