~ubuntu-branches/ubuntu/lucid/postgresql-8.4/lucid-proposed

« back to all changes in this revision

Viewing changes to contrib/btree_gin/sql/float8.sql

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-03-20 12:00:13 UTC
  • Revision ID: james.westby@ubuntu.com-20090320120013-hogj7egc5mjncc5g
Tags: upstream-8.4~0cvs20090328
ImportĀ upstreamĀ versionĀ 8.4~0cvs20090328

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
set enable_seqscan=off;
 
2
 
 
3
CREATE TABLE test_float8 (
 
4
        i float8
 
5
);
 
6
 
 
7
INSERT INTO test_float8 VALUES (-2),(-1),(0),(1),(2),(3);
 
8
 
 
9
CREATE INDEX idx_float8 ON test_float8 USING gin (i);
 
10
 
 
11
SELECT * FROM test_float8 WHERE i<1::float8 ORDER BY i;
 
12
SELECT * FROM test_float8 WHERE i<=1::float8 ORDER BY i;
 
13
SELECT * FROM test_float8 WHERE i=1::float8 ORDER BY i;
 
14
SELECT * FROM test_float8 WHERE i>=1::float8 ORDER BY i;
 
15
SELECT * FROM test_float8 WHERE i>1::float8 ORDER BY i;