~ubuntu-branches/ubuntu/precise/postgresql-9.1/precise-security

« 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: 2011-05-11 10:41:53 UTC
  • Revision ID: james.westby@ubuntu.com-20110511104153-psbh2o58553fv1m0
Tags: upstream-9.1~beta1
ImportĀ upstreamĀ versionĀ 9.1~beta1

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;