diff --git a/src/test/regress/expected/multi_explain.out b/src/test/regress/expected/multi_explain.out index fdabbd6cf..917aa8aac 100644 --- a/src/test/regress/expected/multi_explain.out +++ b/src/test/regress/expected/multi_explain.out @@ -288,7 +288,7 @@ Distributed Query -> Bitmap Index Scan on lineitem_pkey_102009 Index Cond: (l_orderkey = 1) -- Test single-shard SELECT -EXPLAIN +EXPLAIN (COSTS FALSE) SELECT l_quantity FROM lineitem WHERE l_orderkey = 5; Distributed Query into pg_merge_job_0047 Executor: Router @@ -296,12 +296,13 @@ Distributed Query into pg_merge_job_0047 Tasks Shown: All -> Task Node: host=localhost port=57637 dbname=regression - -> Bitmap Heap Scan on lineitem_102009 lineitem (cost=4.31..19.58 rows=5 width=18) + -> Bitmap Heap Scan on lineitem_102009 lineitem Recheck Cond: (l_orderkey = 5) - -> Bitmap Index Scan on lineitem_pkey_102009 (cost=0.00..4.31 rows=5 width=0) + -> Bitmap Index Scan on lineitem_pkey_102009 Index Cond: (l_orderkey = 5) -- Test CREATE TABLE ... AS -EXPLAIN CREATE TABLE explain_result AS +EXPLAIN (COSTS FALSE) + CREATE TABLE explain_result AS SELECT * FROM lineitem; Distributed Query into pg_merge_job_0048 Executor: Real-Time @@ -309,9 +310,9 @@ Distributed Query into pg_merge_job_0048 Tasks Shown: One of 6 -> Task Node: host=localhost port=57637 dbname=regression - -> Seq Scan on lineitem_102010 lineitem (cost=0.00..58.80 rows=980 width=374) + -> Seq Scan on lineitem_102010 lineitem Master Query - -> Seq Scan on pg_merge_job_0048 (cost=0.00..0.00 rows=0 width=0) + -> Seq Scan on pg_merge_job_0048 -- Test all tasks output SET citus.explain_all_tasks TO on; EXPLAIN (COSTS FALSE) diff --git a/src/test/regress/expected/multi_explain_0.out b/src/test/regress/expected/multi_explain_0.out index 07a9762e7..b920cd5fd 100644 --- a/src/test/regress/expected/multi_explain_0.out +++ b/src/test/regress/expected/multi_explain_0.out @@ -288,7 +288,7 @@ Distributed Query -> Bitmap Index Scan on lineitem_pkey_102009 Index Cond: (l_orderkey = 1) -- Test single-shard SELECT -EXPLAIN +EXPLAIN (COSTS FALSE) SELECT l_quantity FROM lineitem WHERE l_orderkey = 5; Distributed Query into pg_merge_job_0047 Executor: Router @@ -296,12 +296,13 @@ Distributed Query into pg_merge_job_0047 Tasks Shown: All -> Task Node: host=localhost port=57637 dbname=regression - -> Bitmap Heap Scan on lineitem_102009 lineitem (cost=4.31..19.58 rows=5 width=18) + -> Bitmap Heap Scan on lineitem_102009 lineitem Recheck Cond: (l_orderkey = 5) - -> Bitmap Index Scan on lineitem_pkey_102009 (cost=0.00..4.31 rows=5 width=0) + -> Bitmap Index Scan on lineitem_pkey_102009 Index Cond: (l_orderkey = 5) -- Test CREATE TABLE ... AS -EXPLAIN CREATE TABLE explain_result AS +EXPLAIN (COSTS FALSE) + CREATE TABLE explain_result AS SELECT * FROM lineitem; Distributed Query into pg_merge_job_0048 Executor: Real-Time @@ -309,9 +310,9 @@ Distributed Query into pg_merge_job_0048 Tasks Shown: One of 6 -> Task Node: host=localhost port=57637 dbname=regression - -> Seq Scan on lineitem_102010 lineitem (cost=0.00..58.80 rows=980 width=374) + -> Seq Scan on lineitem_102010 lineitem Master Query - -> Seq Scan on pg_merge_job_0048 (cost=0.00..0.00 rows=0 width=0) + -> Seq Scan on pg_merge_job_0048 -- Test all tasks output SET citus.explain_all_tasks TO on; EXPLAIN (COSTS FALSE) diff --git a/src/test/regress/sql/multi_explain.sql b/src/test/regress/sql/multi_explain.sql index 479c4c82a..d079b544d 100644 --- a/src/test/regress/sql/multi_explain.sql +++ b/src/test/regress/sql/multi_explain.sql @@ -57,11 +57,12 @@ EXPLAIN (COSTS FALSE) WHERE l_orderkey = 1 AND l_partkey = 0; -- Test single-shard SELECT -EXPLAIN +EXPLAIN (COSTS FALSE) SELECT l_quantity FROM lineitem WHERE l_orderkey = 5; -- Test CREATE TABLE ... AS -EXPLAIN CREATE TABLE explain_result AS +EXPLAIN (COSTS FALSE) + CREATE TABLE explain_result AS SELECT * FROM lineitem; -- Test all tasks output