~ubuntu-branches/ubuntu/natty/postgresql-8.4/natty-updates

« back to all changes in this revision

Viewing changes to contrib/btree_gin/sql/int8.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_int8 (
 
4
        i int8
 
5
);
 
6
 
 
7
INSERT INTO test_int8 VALUES (-2),(-1),(0),(1),(2),(3);
 
8
 
 
9
CREATE INDEX idx_int8 ON test_int8 USING gin (i);
 
10
 
 
11
SELECT * FROM test_int8 WHERE i<1::int8 ORDER BY i;
 
12
SELECT * FROM test_int8 WHERE i<=1::int8 ORDER BY i;
 
13
SELECT * FROM test_int8 WHERE i=1::int8 ORDER BY i;
 
14
SELECT * FROM test_int8 WHERE i>=1::int8 ORDER BY i;
 
15
SELECT * FROM test_int8 WHERE i>1::int8 ORDER BY i;