Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 338c4e1

Browse files
committed
Disable switch to bitmap scan seen in certain tests under large
artificial slowdown.
1 parent 183f32b commit 338c4e1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

sql/int4.sql

+2-2
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ EXPLAIN (costs off)
120120
SELECT id, id |=> 400 FROM test_int4_h_o WHERE t @@ 'wr&qh' ORDER BY id |=> 400 LIMIT 5;
121121
SELECT id, id |=> 400 FROM test_int4_h_o WHERE t @@ 'wr&qh' ORDER BY id |=> 400 LIMIT 5;
122122

123+
SET enable_bitmapscan=OFF;
124+
123125
EXPLAIN (costs off)
124126
SELECT id FROM test_int4_h_o WHERE t @@ 'wr&qh' AND id <= 400 ORDER BY id;
125127
SELECT id FROM test_int4_h_o WHERE t @@ 'wr&qh' AND id <= 400 ORDER BY id;
@@ -133,8 +135,6 @@ CREATE INDEX test_int4_h_a_idx ON test_int4_h_a USING rum
133135
(t rum_tsvector_hash_addon_ops, id)
134136
WITH (attach = 'id', to = 't', order_by_attach='t');
135137

136-
SET enable_bitmapscan=OFF;
137-
138138
EXPLAIN (costs off)
139139
SELECT count(*) FROM test_int4_h_a WHERE id < 400;
140140
SELECT count(*) FROM test_int4_h_a WHERE id < 400;

sql/int8.sql

+2-2
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ EXPLAIN (costs off)
120120
SELECT id, id |=> 400 FROM test_int8_h_o WHERE t @@ 'wr&qh' ORDER BY id |=> 400 LIMIT 5;
121121
SELECT id, id |=> 400 FROM test_int8_h_o WHERE t @@ 'wr&qh' ORDER BY id |=> 400 LIMIT 5;
122122

123+
SET enable_bitmapscan=OFF;
124+
123125
EXPLAIN (costs off)
124126
SELECT id FROM test_int8_h_o WHERE t @@ 'wr&qh' AND id <= 400::int8 ORDER BY id;
125127
SELECT id FROM test_int8_h_o WHERE t @@ 'wr&qh' AND id <= 400::int8 ORDER BY id;
@@ -133,8 +135,6 @@ CREATE INDEX test_int8_h_a_idx ON test_int8_h_a USING rum
133135
(t rum_tsvector_hash_addon_ops, id)
134136
WITH (attach = 'id', to = 't', order_by_attach='t');
135137

136-
SET enable_bitmapscan=OFF;
137-
138138
EXPLAIN (costs off)
139139
SELECT count(*) FROM test_int8_h_a WHERE id < 400::int8;
140140
SELECT count(*) FROM test_int8_h_a WHERE id < 400::int8;

0 commit comments

Comments
 (0)