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

« back to all changes in this revision

Viewing changes to src/test/regress/expected/btree_index.out

  • 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
--
 
2
-- BTREE_INDEX
 
3
-- test retrieval of min/max keys for each index
 
4
--
 
5
SELECT b.*
 
6
   FROM bt_i4_heap b
 
7
   WHERE b.seqno < 1;
 
8
 seqno |   random   
 
9
-------+------------
 
10
     0 | 1935401906
 
11
(1 row)
 
12
 
 
13
SELECT b.*
 
14
   FROM bt_i4_heap b
 
15
   WHERE b.seqno >= 9999;
 
16
 seqno |   random   
 
17
-------+------------
 
18
  9999 | 1227676208
 
19
(1 row)
 
20
 
 
21
SELECT b.*
 
22
   FROM bt_i4_heap b
 
23
   WHERE b.seqno = 4500;
 
24
 seqno |   random   
 
25
-------+------------
 
26
  4500 | 2080851358
 
27
(1 row)
 
28
 
 
29
SELECT b.*
 
30
   FROM bt_name_heap b
 
31
   WHERE b.seqno < '1'::name;
 
32
 seqno |   random   
 
33
-------+------------
 
34
 0     | 1935401906
 
35
(1 row)
 
36
 
 
37
SELECT b.*
 
38
   FROM bt_name_heap b
 
39
   WHERE b.seqno >= '9999'::name;
 
40
 seqno |   random   
 
41
-------+------------
 
42
 9999  | 1227676208
 
43
(1 row)
 
44
 
 
45
SELECT b.*
 
46
   FROM bt_name_heap b
 
47
   WHERE b.seqno = '4500'::name;
 
48
 seqno |   random   
 
49
-------+------------
 
50
 4500  | 2080851358
 
51
(1 row)
 
52
 
 
53
SELECT b.*
 
54
   FROM bt_txt_heap b
 
55
   WHERE b.seqno < '1'::text;
 
56
 seqno |   random   
 
57
-------+------------
 
58
 0     | 1935401906
 
59
(1 row)
 
60
 
 
61
SELECT b.*
 
62
   FROM bt_txt_heap b
 
63
   WHERE b.seqno >= '9999'::text;
 
64
 seqno |   random   
 
65
-------+------------
 
66
 9999  | 1227676208
 
67
(1 row)
 
68
 
 
69
SELECT b.*
 
70
   FROM bt_txt_heap b
 
71
   WHERE b.seqno = '4500'::text;
 
72
 seqno |   random   
 
73
-------+------------
 
74
 4500  | 2080851358
 
75
(1 row)
 
76
 
 
77
SELECT b.*
 
78
   FROM bt_f8_heap b
 
79
   WHERE b.seqno < '1'::float8;
 
80
 seqno |   random   
 
81
-------+------------
 
82
     0 | 1935401906
 
83
(1 row)
 
84
 
 
85
SELECT b.*
 
86
   FROM bt_f8_heap b
 
87
   WHERE b.seqno >= '9999'::float8;
 
88
 seqno |   random   
 
89
-------+------------
 
90
  9999 | 1227676208
 
91
(1 row)
 
92
 
 
93
SELECT b.*
 
94
   FROM bt_f8_heap b
 
95
   WHERE b.seqno = '4500'::float8;
 
96
 seqno |   random   
 
97
-------+------------
 
98
  4500 | 2080851358
 
99
(1 row)
 
100
 
 
101
--
 
102
-- Check correct optimization of LIKE (special index operator support)
 
103
-- for both indexscan and bitmapscan cases
 
104
--
 
105
set enable_seqscan to false;
 
106
set enable_indexscan to true;
 
107
set enable_bitmapscan to false;
 
108
select proname from pg_proc where proname like E'RI\\_FKey%del' order by 1;
 
109
        proname         
 
110
------------------------
 
111
 RI_FKey_cascade_del
 
112
 RI_FKey_noaction_del
 
113
 RI_FKey_restrict_del
 
114
 RI_FKey_setdefault_del
 
115
 RI_FKey_setnull_del
 
116
(5 rows)
 
117
 
 
118
set enable_indexscan to false;
 
119
set enable_bitmapscan to true;
 
120
select proname from pg_proc where proname like E'RI\\_FKey%del' order by 1;
 
121
        proname         
 
122
------------------------
 
123
 RI_FKey_cascade_del
 
124
 RI_FKey_noaction_del
 
125
 RI_FKey_restrict_del
 
126
 RI_FKey_setdefault_del
 
127
 RI_FKey_setnull_del
 
128
(5 rows)
 
129