]> granicus.if.org Git - postgresql/commitdiff
Fix parallel bitmapscan tests on builds without USE_PREFETCH.
authorAndres Freund <andres@anarazel.de>
Thu, 6 Apr 2017 21:21:39 +0000 (14:21 -0700)
committerAndres Freund <andres@anarazel.de>
Thu, 6 Apr 2017 21:22:27 +0000 (14:22 -0700)
This was broken in 5a5931533edd2.

src/test/regress/expected/select_parallel.out
src/test/regress/sql/select_parallel.sql

index d65c2b93a8c888576fb831ca40b00ad15232fe60..0e9bc1a70784d320a5eec62e9af9578249fc1f09 100644 (file)
@@ -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;
index b2a0bd5d94a5758d8ce4a0110f7ad070c9799e72..67bc82e83477df1ab5194b8c2972d94ac2429801 100644 (file)
@@ -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;