Skip to content

Commit 4f63e85

Browse files
committed
Add COSTS off to two EXPLAIN using tests.
Discussion: https://postgr.es/m/20180312222023.i4sgkbl4oqtstus3@alap3.anarazel.de
1 parent 0927d2f commit 4f63e85

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

src/test/regress/expected/subselect.out

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -232,23 +232,23 @@ SELECT *, pg_typeof(f1) FROM
232232
(3 rows)
233233

234234
-- ... unless there's context to suggest differently
235-
explain verbose select '42' union all select '43';
236-
QUERY PLAN
237-
-------------------------------------------------
238-
Append (cost=0.00..0.05 rows=2 width=32)
239-
-> Result (cost=0.00..0.01 rows=1 width=32)
235+
explain (verbose, costs off) select '42' union all select '43';
236+
QUERY PLAN
237+
----------------------------
238+
Append
239+
-> Result
240240
Output: '42'::text
241-
-> Result (cost=0.00..0.01 rows=1 width=32)
241+
-> Result
242242
Output: '43'::text
243243
(5 rows)
244244

245-
explain verbose select '42' union all select 43;
246-
QUERY PLAN
247-
------------------------------------------------
248-
Append (cost=0.00..0.05 rows=2 width=4)
249-
-> Result (cost=0.00..0.01 rows=1 width=4)
245+
explain (verbose, costs off) select '42' union all select 43;
246+
QUERY PLAN
247+
--------------------
248+
Append
249+
-> Result
250250
Output: 42
251-
-> Result (cost=0.00..0.01 rows=1 width=4)
251+
-> Result
252252
Output: 43
253253
(5 rows)
254254

src/test/regress/sql/subselect.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ SELECT *, pg_typeof(f1) FROM
9999

100100
-- ... unless there's context to suggest differently
101101

102-
explain verbose select '42' union all select '43';
103-
explain verbose select '42' union all select 43;
102+
explain (verbose, costs off) select '42' union all select '43';
103+
explain (verbose, costs off) select '42' union all select 43;
104104

105105
-- check materialization of an initplan reference (bug #14524)
106106
explain (verbose, costs off)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy