File tree Expand file tree Collapse file tree 8 files changed +48
-7
lines changed Expand file tree Collapse file tree 8 files changed +48
-7
lines changed Original file line number Diff line number Diff line change @@ -445,7 +445,6 @@ FROM bool_test;
445
445
-- Test cases that should be optimized into indexscans instead of
446
446
-- the generic aggregate implementation.
447
447
--
448
- analyze tenk1; -- ensure we get consistent plans here
449
448
-- Basic cases
450
449
explain (costs off)
451
450
select min(unique1) from tenk1;
Original file line number Diff line number Diff line change @@ -134,7 +134,6 @@ ALTER INDEX tmp_onek_unique1 RENAME TO onek_unique1;
134
134
CREATE VIEW tmp_view (unique1) AS SELECT unique1 FROM tenk1;
135
135
ALTER TABLE tmp_view RENAME TO tmp_view_new;
136
136
-- hack to ensure we get an indexscan here
137
- ANALYZE tenk1;
138
137
set enable_seqscan to off;
139
138
set enable_bitmapscan to off;
140
139
-- 5 values, sorted
Original file line number Diff line number Diff line change @@ -2129,7 +2129,6 @@ on (x1 = xx1) where (xx2 is not null);
2129
2129
-- regression test: check for bug with propagation of implied equality
2130
2130
-- to outside an IN
2131
2131
--
2132
- analyze tenk1; -- ensure we get consistent plans here
2133
2132
select count(*) from tenk1 a where unique1 in
2134
2133
(select unique1 from tenk1 b join tenk1 c using (unique1)
2135
2134
where b.unique2 = 42);
Original file line number Diff line number Diff line change @@ -60,6 +60,31 @@ COPY array_op_test FROM '@abs_srcdir@/data/array.data';
60
60
61
61
COPY array_index_op_test FROM '@abs_srcdir@/data/array.data';
62
62
63
+ -- analyze all the data we just loaded, to ensure plan consistency
64
+ -- in later tests
65
+
66
+ ANALYZE aggtest;
67
+ ANALYZE onek;
68
+ ANALYZE tenk1;
69
+ ANALYZE slow_emp4000;
70
+ ANALYZE person;
71
+ ANALYZE emp;
72
+ ANALYZE student;
73
+ ANALYZE stud_emp;
74
+ ANALYZE road;
75
+ ANALYZE real_city;
76
+ ANALYZE hash_i4_heap;
77
+ ANALYZE hash_name_heap;
78
+ ANALYZE hash_txt_heap;
79
+ ANALYZE hash_f8_heap;
80
+ ANALYZE test_tsvector;
81
+ ANALYZE bt_i4_heap;
82
+ ANALYZE bt_name_heap;
83
+ ANALYZE bt_txt_heap;
84
+ ANALYZE bt_f8_heap;
85
+ ANALYZE array_op_test;
86
+ ANALYZE array_index_op_test;
87
+
63
88
--- test copying in CSV mode with various styles
64
89
--- of embedded line ending characters
65
90
Original file line number Diff line number Diff line change @@ -34,6 +34,29 @@ COPY bt_txt_heap FROM '@abs_srcdir@/data/desc.data';
34
34
COPY bt_f8_heap FROM '@abs_srcdir@/data/hash.data';
35
35
COPY array_op_test FROM '@abs_srcdir@/data/array.data';
36
36
COPY array_index_op_test FROM '@abs_srcdir@/data/array.data';
37
+ -- analyze all the data we just loaded, to ensure plan consistency
38
+ -- in later tests
39
+ ANALYZE aggtest;
40
+ ANALYZE onek;
41
+ ANALYZE tenk1;
42
+ ANALYZE slow_emp4000;
43
+ ANALYZE person;
44
+ ANALYZE emp;
45
+ ANALYZE student;
46
+ ANALYZE stud_emp;
47
+ ANALYZE road;
48
+ ANALYZE real_city;
49
+ ANALYZE hash_i4_heap;
50
+ ANALYZE hash_name_heap;
51
+ ANALYZE hash_txt_heap;
52
+ ANALYZE hash_f8_heap;
53
+ ANALYZE test_tsvector;
54
+ ANALYZE bt_i4_heap;
55
+ ANALYZE bt_name_heap;
56
+ ANALYZE bt_txt_heap;
57
+ ANALYZE bt_f8_heap;
58
+ ANALYZE array_op_test;
59
+ ANALYZE array_index_op_test;
37
60
--- test copying in CSV mode with various styles
38
61
--- of embedded line ending characters
39
62
create temp table copytest (
Original file line number Diff line number Diff line change @@ -208,7 +208,6 @@ FROM bool_test;
208
208
-- Test cases that should be optimized into indexscans instead of
209
209
-- the generic aggregate implementation.
210
210
--
211
- analyze tenk1; -- ensure we get consistent plans here
212
211
213
212
-- Basic cases
214
213
explain (costs off)
Original file line number Diff line number Diff line change @@ -173,7 +173,6 @@ CREATE VIEW tmp_view (unique1) AS SELECT unique1 FROM tenk1;
173
173
ALTER TABLE tmp_view RENAME TO tmp_view_new;
174
174
175
175
-- hack to ensure we get an indexscan here
176
- ANALYZE tenk1;
177
176
set enable_seqscan to off;
178
177
set enable_bitmapscan to off;
179
178
-- 5 values, sorted
Original file line number Diff line number Diff line change @@ -330,8 +330,6 @@ on (x1 = xx1) where (xx2 is not null);
330
330
-- regression test: check for bug with propagation of implied equality
331
331
-- to outside an IN
332
332
--
333
- analyze tenk1; -- ensure we get consistent plans here
334
-
335
333
select count (* ) from tenk1 a where unique1 in
336
334
(select unique1 from tenk1 b join tenk1 c using (unique1)
337
335
where b .unique2 = 42 );
You can’t perform that action at this time.
0 commit comments