Add COSTS off to two EXPLAIN using tests.

Discussion: https://postgr.es/m/20180312222023.i4sgkbl4oqtstus3@alap3.anarazel.de
This commit is contained in:
Andres Freund 2018-03-12 23:09:58 -07:00
parent 0927d2f46d
commit 4f63e85eb1
2 changed files with 14 additions and 14 deletions

View File

@ -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)

View File

@ -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)