~ubuntu-branches/ubuntu/hardy/postgresql-8.4/hardy-backports

« back to all changes in this revision

Viewing changes to contrib/btree_gin/expected/numeric.out

  • 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
CREATE TABLE test_numeric (
 
3
        i numeric
 
4
);
 
5
INSERT INTO test_numeric VALUES (-2),(-1),(0),(1),(2),(3);
 
6
CREATE INDEX idx_numeric ON test_numeric USING gin (i);
 
7
SELECT * FROM test_numeric WHERE i<'1'::numeric ORDER BY i;
 
8
 i  
 
9
----
 
10
 -2
 
11
 -1
 
12
  0
 
13
(3 rows)
 
14
 
 
15
SELECT * FROM test_numeric WHERE i<='1'::numeric ORDER BY i;
 
16
 i  
 
17
----
 
18
 -2
 
19
 -1
 
20
  0
 
21
  1
 
22
(4 rows)
 
23
 
 
24
SELECT * FROM test_numeric WHERE i='1'::numeric ORDER BY i;
 
25
 i 
 
26
---
 
27
 1
 
28
(1 row)
 
29
 
 
30
SELECT * FROM test_numeric WHERE i>='1'::numeric ORDER BY i;
 
31
 i 
 
32
---
 
33
 1
 
34
 2
 
35
 3
 
36
(3 rows)
 
37
 
 
38
SELECT * FROM test_numeric WHERE i>'1'::numeric ORDER BY i;
 
39
 i 
 
40
---
 
41
 2
 
42
 3
 
43
(2 rows)
 
44