Skip to content

Commit

Permalink
Fix parallel bitmapscan tests on builds without USE_PREFETCH.
Browse files Browse the repository at this point in the history
This was broken in 5a59315.
  • Loading branch information
anarazel committed Apr 6, 2017
1 parent 7e534ad commit d611517
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/test/regress/expected/select_parallel.out
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,12 @@ set enable_indexscan to off;
set enable_hashjoin to off;
set enable_mergejoin to off;
set enable_material to off;
set effective_io_concurrency=50;
-- test prefetching, if the platform allows it
DO $$
BEGIN
SET effective_io_concurrency = 50;
EXCEPTION WHEN invalid_parameter_value THEN
END $$;
set work_mem='64kB'; --set small work mem to force lossy pages
explain (costs off)
select count(*) from tenk1, tenk2 where tenk1.hundred > 1 and tenk2.thousand=0;
Expand Down
7 changes: 6 additions & 1 deletion src/test/regress/sql/select_parallel.sql
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,12 @@ set enable_indexscan to off;
set enable_hashjoin to off;
set enable_mergejoin to off;
set enable_material to off;
set effective_io_concurrency=50;
-- test prefetching, if the platform allows it
DO $$
BEGIN
SET effective_io_concurrency = 50;
EXCEPTION WHEN invalid_parameter_value THEN
END $$;
set work_mem='64kB'; --set small work mem to force lossy pages
explain (costs off)
select count(*) from tenk1, tenk2 where tenk1.hundred > 1 and tenk2.thousand=0;
Expand Down

0 comments on commit d611517

Please sign in to comment.