summaryrefslogtreecommitdiff
path: root/src/test/regress/sql/select_parallel.sql
diff options
context:
space:
mode:
authorAndres Freund2017-08-14 22:21:26 +0000
committerAndres Freund2017-08-14 22:27:47 +0000
commitd2bc501573d98ff5541271dca94fb5f7a004ecbf (patch)
treebf19c2c3f55fd8ce1fd56ff2888a3a875b1c833f /src/test/regress/sql/select_parallel.sql
parent9f14dc393bd441dd9251bea2a5a3ad7f889b03c5 (diff)
Expand coverage of parallel gather merge a bit.
Previously paths reaching heap_compare_slots weren't covered. Author: Rushabh Lathia Reviewed-By: Andres Freund Discussion: https://postgr.es/m/CAGPqQf3C+3PBujb+7m=ceWeii4-vBY=XS99LjzrpkpefvzJbFg@mail.gmail.com https://postgr.es/m/[email protected] Backpatch: 10, where gather merge was introduced
Diffstat (limited to 'src/test/regress/sql/select_parallel.sql')
-rw-r--r--src/test/regress/sql/select_parallel.sql14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/test/regress/sql/select_parallel.sql b/src/test/regress/sql/select_parallel.sql
index d2d262c7249..e717f92e530 100644
--- a/src/test/regress/sql/select_parallel.sql
+++ b/src/test/regress/sql/select_parallel.sql
@@ -110,14 +110,20 @@ select count(*) from tenk1, tenk2 where tenk1.unique1 = tenk2.unique1;
reset enable_hashjoin;
reset enable_nestloop;
---test gather merge
-set enable_hashagg to off;
+-- test gather merge
+set enable_hashagg = false;
explain (costs off)
- select string4, count((unique2)) from tenk1 group by string4 order by string4;
+ select count(*) from tenk1 group by twenty;
-select string4, count((unique2)) from tenk1 group by string4 order by string4;
+select count(*) from tenk1 group by twenty;
+-- gather merge test with 0 worker
+set max_parallel_workers = 0;
+explain (costs off)
+ select string4 from tenk1 order by string4 limit 5;
+select string4 from tenk1 order by string4 limit 5;
+reset max_parallel_workers;
reset enable_hashagg;
set force_parallel_mode=1;