diff --git a/src/test/regress/expected/explain.out b/src/test/regress/expected/explain.out
index 7c1f26b182c..dc31c7ce9f9 100644
--- a/src/test/regress/expected/explain.out
+++ b/src/test/regress/expected/explain.out
@@ -93,164 +93,160 @@ select explain_filter('explain (analyze, buffers, format text) select * from int
Execution Time: N.N ms
(3 rows)
-select explain_filter('explain (analyze, buffers, format xml) select * from int8_tbl i8');
- explain_filter
---------------------------------------------------------
- +
- +
- +
- Seq Scan +
- false +
- false +
- int8_tbl +
- i8 +
- N.N +
- N.N +
- N +
- N +
- N.N +
- N.N +
- N.N +
- N +
- false +
- N +
- N +
- N+
- N+
- N +
- N +
- N +
- N +
- N +
- N +
- +
- +
- N +
- N +
- N+
- N+
- N +
- N +
- N +
- N +
- N +
- N +
- +
- N.N +
- +
- +
- N.N +
- +
-
-(1 row)
-
-select explain_filter('explain (analyze, serialize, buffers, format yaml) select * from int8_tbl i8');
- explain_filter
--------------------------------
- - Plan: +
- Node Type: "Seq Scan" +
- Parallel Aware: false +
- Async Capable: false +
- Relation Name: "int8_tbl"+
- Alias: "i8" +
- Startup Cost: N.N +
- Total Cost: N.N +
- Plan Rows: N +
- Plan Width: N +
- Actual Startup Time: N.N +
- Actual Total Time: N.N +
- Actual Rows: N.N +
- Actual Loops: N +
- Disabled: false +
- Shared Hit Blocks: N +
- Shared Read Blocks: N +
- Shared Dirtied Blocks: N +
- Shared Written Blocks: N +
- Local Hit Blocks: N +
- Local Read Blocks: N +
- Local Dirtied Blocks: N +
- Local Written Blocks: N +
- Temp Read Blocks: N +
- Temp Written Blocks: N +
- Planning: +
- Shared Hit Blocks: N +
- Shared Read Blocks: N +
- Shared Dirtied Blocks: N +
- Shared Written Blocks: N +
- Local Hit Blocks: N +
- Local Read Blocks: N +
- Local Dirtied Blocks: N +
- Local Written Blocks: N +
- Temp Read Blocks: N +
- Temp Written Blocks: N +
- Planning Time: N.N +
- Triggers: +
- Serialization: +
- Time: N.N +
- Output Volume: N +
- Format: "text" +
- Shared Hit Blocks: N +
- Shared Read Blocks: N +
- Shared Dirtied Blocks: N +
- Shared Written Blocks: N +
- Local Hit Blocks: N +
- Local Read Blocks: N +
- Local Dirtied Blocks: N +
- Local Written Blocks: N +
- Temp Read Blocks: N +
- Temp Written Blocks: N +
- Execution Time: N.N
-(1 row)
-
select explain_filter('explain (buffers, format text) select * from int8_tbl i8');
explain_filter
---------------------------------------------------------
Seq Scan on int8_tbl i8 (cost=N.N..N.N rows=N width=N)
(1 row)
-select explain_filter('explain (buffers, format json) select * from int8_tbl i8');
- explain_filter
-------------------------------------
- [ +
- { +
- "Plan": { +
- "Node Type": "Seq Scan", +
- "Parallel Aware": false, +
- "Async Capable": false, +
- "Relation Name": "int8_tbl",+
- "Alias": "i8", +
- "Startup Cost": N.N, +
- "Total Cost": N.N, +
- "Plan Rows": N, +
- "Plan Width": N, +
- "Disabled": false, +
- "Shared Hit Blocks": N, +
- "Shared Read Blocks": N, +
- "Shared Dirtied Blocks": N, +
- "Shared Written Blocks": N, +
- "Local Hit Blocks": N, +
- "Local Read Blocks": N, +
- "Local Dirtied Blocks": N, +
- "Local Written Blocks": N, +
- "Temp Read Blocks": N, +
- "Temp Written Blocks": N +
- }, +
- "Planning": { +
- "Shared Hit Blocks": N, +
- "Shared Read Blocks": N, +
- "Shared Dirtied Blocks": N, +
- "Shared Written Blocks": N, +
- "Local Hit Blocks": N, +
- "Local Read Blocks": N, +
- "Local Dirtied Blocks": N, +
- "Local Written Blocks": N, +
- "Temp Read Blocks": N, +
- "Temp Written Blocks": N +
- } +
- } +
- ]
+\a
+select explain_filter('explain (analyze, buffers, format xml) select * from int8_tbl i8');
+explain_filter
+
+
+
+ Seq Scan
+ false
+ false
+ int8_tbl
+ i8
+ N.N
+ N.N
+ N
+ N
+ N.N
+ N.N
+ N.N
+ N
+ false
+ N
+ N
+ N
+ N
+ N
+ N
+ N
+ N
+ N
+ N
+
+
+ N
+ N
+ N
+ N
+ N
+ N
+ N
+ N
+ N
+ N
+
+ N.N
+
+
+ N.N
+
+
(1 row)
-
+select explain_filter('explain (analyze, serialize, buffers, format yaml) select * from int8_tbl i8');
+explain_filter
+- Plan:
+ Node Type: "Seq Scan"
+ Parallel Aware: false
+ Async Capable: false
+ Relation Name: "int8_tbl"
+ Alias: "i8"
+ Startup Cost: N.N
+ Total Cost: N.N
+ Plan Rows: N
+ Plan Width: N
+ Actual Startup Time: N.N
+ Actual Total Time: N.N
+ Actual Rows: N.N
+ Actual Loops: N
+ Disabled: false
+ Shared Hit Blocks: N
+ Shared Read Blocks: N
+ Shared Dirtied Blocks: N
+ Shared Written Blocks: N
+ Local Hit Blocks: N
+ Local Read Blocks: N
+ Local Dirtied Blocks: N
+ Local Written Blocks: N
+ Temp Read Blocks: N
+ Temp Written Blocks: N
+ Planning:
+ Shared Hit Blocks: N
+ Shared Read Blocks: N
+ Shared Dirtied Blocks: N
+ Shared Written Blocks: N
+ Local Hit Blocks: N
+ Local Read Blocks: N
+ Local Dirtied Blocks: N
+ Local Written Blocks: N
+ Temp Read Blocks: N
+ Temp Written Blocks: N
+ Planning Time: N.N
+ Triggers:
+ Serialization:
+ Time: N.N
+ Output Volume: N
+ Format: "text"
+ Shared Hit Blocks: N
+ Shared Read Blocks: N
+ Shared Dirtied Blocks: N
+ Shared Written Blocks: N
+ Local Hit Blocks: N
+ Local Read Blocks: N
+ Local Dirtied Blocks: N
+ Local Written Blocks: N
+ Temp Read Blocks: N
+ Temp Written Blocks: N
+ Execution Time: N.N
+(1 row)
+select explain_filter('explain (buffers, format json) select * from int8_tbl i8');
+explain_filter
+[
+ {
+ "Plan": {
+ "Node Type": "Seq Scan",
+ "Parallel Aware": false,
+ "Async Capable": false,
+ "Relation Name": "int8_tbl",
+ "Alias": "i8",
+ "Startup Cost": N.N,
+ "Total Cost": N.N,
+ "Plan Rows": N,
+ "Plan Width": N,
+ "Disabled": false,
+ "Shared Hit Blocks": N,
+ "Shared Read Blocks": N,
+ "Shared Dirtied Blocks": N,
+ "Shared Written Blocks": N,
+ "Local Hit Blocks": N,
+ "Local Read Blocks": N,
+ "Local Dirtied Blocks": N,
+ "Local Written Blocks": N,
+ "Temp Read Blocks": N,
+ "Temp Written Blocks": N
+ },
+ "Planning": {
+ "Shared Hit Blocks": N,
+ "Shared Read Blocks": N,
+ "Shared Dirtied Blocks": N,
+ "Shared Written Blocks": N,
+ "Local Hit Blocks": N,
+ "Local Read Blocks": N,
+ "Local Dirtied Blocks": N,
+ "Local Written Blocks": N,
+ "Temp Read Blocks": N,
+ "Temp Written Blocks": N
+ }
+ }
+]
+(1 row)
+\a
-- Check expansion of window definitions
select explain_filter('explain verbose select sum(unique1) over w, sum(unique2) over (w order by hundred), sum(tenthous) over (w order by hundred) from tenk1 window w as (partition by ten)');
explain_filter
diff --git a/src/test/regress/sql/explain.sql b/src/test/regress/sql/explain.sql
index ebdab42604b..8f10e1aff55 100644
--- a/src/test/regress/sql/explain.sql
+++ b/src/test/regress/sql/explain.sql
@@ -66,10 +66,13 @@ select explain_filter('explain select * from int8_tbl i8');
select explain_filter('explain (analyze, buffers off) select * from int8_tbl i8');
select explain_filter('explain (analyze, buffers off, verbose) select * from int8_tbl i8');
select explain_filter('explain (analyze, buffers, format text) select * from int8_tbl i8');
+select explain_filter('explain (buffers, format text) select * from int8_tbl i8');
+
+\a
select explain_filter('explain (analyze, buffers, format xml) select * from int8_tbl i8');
select explain_filter('explain (analyze, serialize, buffers, format yaml) select * from int8_tbl i8');
-select explain_filter('explain (buffers, format text) select * from int8_tbl i8');
select explain_filter('explain (buffers, format json) select * from int8_tbl i8');
+\a
-- Check expansion of window definitions