Commit 4f63e85e authored by Andres Freund's avatar Andres Freund

Add COSTS off to two EXPLAIN using tests.

Discussion: https://postgr.es/m/20180312222023.i4sgkbl4oqtstus3@alap3.anarazel.de
parent 0927d2f4
......@@ -232,23 +232,23 @@ SELECT *, pg_typeof(f1) FROM
(3 rows)
-- ... unless there's context to suggest differently
explain verbose select '42' union all select '43';
QUERY PLAN
-------------------------------------------------
Append (cost=0.00..0.05 rows=2 width=32)
-> Result (cost=0.00..0.01 rows=1 width=32)
explain (verbose, costs off) select '42' union all select '43';
QUERY PLAN
----------------------------
Append
-> Result
Output: '42'::text
-> Result (cost=0.00..0.01 rows=1 width=32)
-> Result
Output: '43'::text
(5 rows)
explain verbose select '42' union all select 43;
QUERY PLAN
------------------------------------------------
Append (cost=0.00..0.05 rows=2 width=4)
-> Result (cost=0.00..0.01 rows=1 width=4)
explain (verbose, costs off) select '42' union all select 43;
QUERY PLAN
--------------------
Append
-> Result
Output: 42
-> Result (cost=0.00..0.01 rows=1 width=4)
-> Result
Output: 43
(5 rows)
......
......@@ -99,8 +99,8 @@ SELECT *, pg_typeof(f1) FROM
-- ... unless there's context to suggest differently
explain verbose select '42' union all select '43';
explain verbose select '42' union all select 43;
explain (verbose, costs off) select '42' union all select '43';
explain (verbose, costs off) select '42' union all select 43;
-- check materialization of an initplan reference (bug #14524)
explain (verbose, costs off)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment