提交 c4618266 编写于 作者: N Ning Yu

Add a regression test for parallel plan dispatching

In commit "Check parallel plans correctly" we introduced a regression
which was only triggered by the out-tree diskquota tests, now we add a
simplified version of the tests to ICW to prevent future regressions.

The issue was fixed by "Replace planIsParallel by checking
Plan->dispatch flag".
上级 d750cac7
......@@ -451,5 +451,17 @@ language plpgsql volatile;
set gp_cached_segworkers_threshold to 1;
select count(*) from dispatch_foo, dispatch_bar where exists (select dispatch_foo_func());
reset gp_cached_segworkers_threshold;
-- A regression test, derived from diskquota tests. It contains two init
-- plans, both contain motions, the plans should be dispatched correctly.
create table table_size (tableid oid, size bigint, primary key(tableid));
create view show_fast_database_size_view as
select ((select sum(pg_relation_size(oid))
from gp_dist_random('pg_class')
where oid <= 16384) +
(select sum(size) from table_size)) as dbsize;
select count((pg_database_size(oid) - dbsize) / dbsize) < 0
from pg_database, show_fast_database_size_view;
\c regression
DROP DATABASE dispatch_test_db;
......@@ -751,5 +751,20 @@ select count(*) from dispatch_foo, dispatch_bar where exists (select dispatch_fo
(1 row)
reset gp_cached_segworkers_threshold;
-- A regression test, derived from diskquota tests. It contains two init
-- plans, both contain motions, the plans should be dispatched correctly.
create table table_size (tableid oid, size bigint, primary key(tableid));
create view show_fast_database_size_view as
select ((select sum(pg_relation_size(oid))
from gp_dist_random('pg_class')
where oid <= 16384) +
(select sum(size) from table_size)) as dbsize;
select count((pg_database_size(oid) - dbsize) / dbsize) < 0
from pg_database, show_fast_database_size_view;
?column?
----------
f
(1 row)
\c regression
DROP DATABASE dispatch_test_db;
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册