1
1
diff --git a/src/backend/commands/explain.c b/src/backend/commands/explain.c
2
- index 82ba58e..bf7dfa6 100644
2
+ index 82ba58e..6ade35c 100644
3
3
--- a/src/backend/commands/explain.c
4
4
+++ b/src/backend/commands/explain.c
5
5
@@ -667,15 +667,35 @@ report_triggers(ResultRelInfo *rInfo, bool show_relname, ExplainState *es)
@@ -162,7 +162,19 @@ index 82ba58e..bf7dfa6 100644
162
162
/* in text format, first line ends here */
163
163
if (es->format == EXPLAIN_FORMAT_TEXT)
164
164
appendStringInfoChar(es->str, '\n');
165
- @@ -2269,20 +2361,17 @@ show_instrumentation_count(const char *qlabel, int which,
165
+ @@ -1508,8 +1600,9 @@ ExplainNode(PlanState *planstate, List *ancestors,
166
+ if (es->buffers && planstate->instrument)
167
+ show_buffer_usage(es, &planstate->instrument->bufusage);
168
+
169
+ - /* Show worker detail */
170
+ - if (es->analyze && es->verbose && planstate->worker_instrument)
171
+ + /* Show worker detail after query execution */
172
+ + if (es->analyze && es->verbose && planstate->worker_instrument
173
+ + && !es->runtime)
174
+ {
175
+ WorkerInstrumentation *w = planstate->worker_instrument;
176
+ boolopened_group = false;
177
+ @@ -2269,20 +2362,17 @@ show_instrumentation_count(const char *qlabel, int which,
166
178
if (!es->analyze || !planstate->instrument)
167
179
return;
168
180
@@ -189,7 +201,7 @@ index 82ba58e..bf7dfa6 100644
189
201
}
190
202
191
203
/*
192
- @@ -2754,14 +2843 ,28 @@ show_modifytable_info(ModifyTableState *mtstate, List *ancestors,
204
+ @@ -2754,14 +2844 ,28 @@ show_modifytable_info(ModifyTableState *mtstate, List *ancestors,
193
205
doubleinsert_path;
194
206
doubleother_path;
195
207