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

« back to all changes in this revision

Viewing changes to contrib/btree_gin/expected/timestamp.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_timestamp (
 
3
        i timestamp
 
4
);
 
5
INSERT INTO test_timestamp VALUES 
 
6
        ( '2004-10-26 03:55:08' ),
 
7
        ( '2004-10-26 04:55:08' ),
 
8
        ( '2004-10-26 05:55:08' ),
 
9
        ( '2004-10-26 08:55:08' ),
 
10
        ( '2004-10-26 09:55:08' ),
 
11
        ( '2004-10-26 10:55:08' )
 
12
;
 
13
CREATE INDEX idx_timestamp ON test_timestamp USING gin (i);
 
14
SELECT * FROM test_timestamp WHERE i<'2004-10-26 08:55:08'::timestamp ORDER BY i;
 
15
            i             
 
16
--------------------------
 
17
 Tue Oct 26 03:55:08 2004
 
18
 Tue Oct 26 04:55:08 2004
 
19
 Tue Oct 26 05:55:08 2004
 
20
(3 rows)
 
21
 
 
22
SELECT * FROM test_timestamp WHERE i<='2004-10-26 08:55:08'::timestamp ORDER BY i;
 
23
            i             
 
24
--------------------------
 
25
 Tue Oct 26 03:55:08 2004
 
26
 Tue Oct 26 04:55:08 2004
 
27
 Tue Oct 26 05:55:08 2004
 
28
 Tue Oct 26 08:55:08 2004
 
29
(4 rows)
 
30
 
 
31
SELECT * FROM test_timestamp WHERE i='2004-10-26 08:55:08'::timestamp ORDER BY i;
 
32
            i             
 
33
--------------------------
 
34
 Tue Oct 26 08:55:08 2004
 
35
(1 row)
 
36
 
 
37
SELECT * FROM test_timestamp WHERE i>='2004-10-26 08:55:08'::timestamp ORDER BY i;
 
38
            i             
 
39
--------------------------
 
40
 Tue Oct 26 08:55:08 2004
 
41
 Tue Oct 26 09:55:08 2004
 
42
 Tue Oct 26 10:55:08 2004
 
43
(3 rows)
 
44
 
 
45
SELECT * FROM test_timestamp WHERE i>'2004-10-26 08:55:08'::timestamp ORDER BY i;
 
46
            i             
 
47
--------------------------
 
48
 Tue Oct 26 09:55:08 2004
 
49
 Tue Oct 26 10:55:08 2004
 
50
(2 rows)
 
51