File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -214,6 +214,7 @@ DROP TABLE distinct_group_2;
214214SET parallel_tuple_cost=0;
215215SET parallel_setup_cost=0;
216216SET min_parallel_table_scan_size=0;
217+ SET max_parallel_workers_per_gather=2;
217218-- Ensure we get a parallel plan
218219EXPLAIN (costs off)
219220SELECT DISTINCT four FROM tenk1;
@@ -274,6 +275,7 @@ SELECT DISTINCT distinct_func(1) FROM tenk1;
274275 -> Parallel Seq Scan on tenk1
275276(6 rows)
276277
278+ RESET max_parallel_workers_per_gather;
277279RESET min_parallel_table_scan_size;
278280RESET parallel_setup_cost;
279281RESET parallel_tuple_cost;
Original file line number Diff line number Diff line change @@ -111,6 +111,7 @@ DROP TABLE distinct_group_2;
111111SET parallel_tuple_cost= 0 ;
112112SET parallel_setup_cost= 0 ;
113113SET min_parallel_table_scan_size= 0 ;
114+ SET max_parallel_workers_per_gather= 2 ;
114115
115116-- Ensure we get a parallel plan
116117EXPLAIN (costs off)
@@ -140,6 +141,7 @@ $$ LANGUAGE plpgsql PARALLEL SAFE;
140141EXPLAIN (COSTS OFF)
141142SELECT DISTINCT distinct_func(1 ) FROM tenk1;
142143
144+ RESET max_parallel_workers_per_gather;
143145RESET min_parallel_table_scan_size;
144146RESET parallel_setup_cost;
145147RESET parallel_tuple_cost;
You can’t perform that action at this time.
0 commit comments