summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rowley2021-08-22 13:44:20 +0000
committerDavid Rowley2021-08-22 13:44:20 +0000
commit945f395aeb74cea77d5239db01357bbcbea80534 (patch)
tree3b833c8d60bf9af161380faa736323bb864081be
parent22c4e88ebff408acd52e212543a77158bde59e69 (diff)
Fix broken regression test caused by 22c4e88eb
Per buildfarm members hoverfly and thorntail
-rw-r--r--src/test/regress/expected/select_distinct.out2
-rw-r--r--src/test/regress/sql/select_distinct.sql2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/test/regress/expected/select_distinct.out b/src/test/regress/expected/select_distinct.out
index 0c8e10f88a5..58122c6f887 100644
--- a/src/test/regress/expected/select_distinct.out
+++ b/src/test/regress/expected/select_distinct.out
@@ -214,6 +214,7 @@ DROP TABLE distinct_group_2;
SET parallel_tuple_cost=0;
SET parallel_setup_cost=0;
SET min_parallel_table_scan_size=0;
+SET max_parallel_workers_per_gather=2;
-- Ensure we get a parallel plan
EXPLAIN (costs off)
SELECT DISTINCT four FROM tenk1;
@@ -274,6 +275,7 @@ SELECT DISTINCT distinct_func(1) FROM tenk1;
-> Parallel Seq Scan on tenk1
(6 rows)
+RESET max_parallel_workers_per_gather;
RESET min_parallel_table_scan_size;
RESET parallel_setup_cost;
RESET parallel_tuple_cost;
diff --git a/src/test/regress/sql/select_distinct.sql b/src/test/regress/sql/select_distinct.sql
index e00582e46c1..1bfe59c26f7 100644
--- a/src/test/regress/sql/select_distinct.sql
+++ b/src/test/regress/sql/select_distinct.sql
@@ -111,6 +111,7 @@ DROP TABLE distinct_group_2;
SET parallel_tuple_cost=0;
SET parallel_setup_cost=0;
SET min_parallel_table_scan_size=0;
+SET max_parallel_workers_per_gather=2;
-- Ensure we get a parallel plan
EXPLAIN (costs off)
@@ -140,6 +141,7 @@ $$ LANGUAGE plpgsql PARALLEL SAFE;
EXPLAIN (COSTS OFF)
SELECT DISTINCT distinct_func(1) FROM tenk1;
+RESET max_parallel_workers_per_gather;
RESET min_parallel_table_scan_size;
RESET parallel_setup_cost;
RESET parallel_tuple_cost;