Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit25f0e2c

Browse files
author
Maksim Milyutin
committed
Fix runtime_explain patch
1 parentf5201f8 commit25f0e2c

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

‎runtime_explain.patch

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
diff --git a/src/backend/commands/explain.c b/src/backend/commands/explain.c
2-
index 82ba58e..bf7dfa6 100644
2+
index 82ba58e..6ade35c 100644
33
--- a/src/backend/commands/explain.c
44
+++ b/src/backend/commands/explain.c
55
@@ -667,15 +667,35 @@ report_triggers(ResultRelInfo *rInfo, bool show_relname, ExplainState *es)
@@ -162,7 +162,19 @@ index 82ba58e..bf7dfa6 100644
162162
/* in text format, first line ends here */
163163
if (es->format == EXPLAIN_FORMAT_TEXT)
164164
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,
166178
if (!es->analyze || !planstate->instrument)
167179
return;
168180

@@ -189,7 +201,7 @@ index 82ba58e..bf7dfa6 100644
189201
}
190202

191203
/*
192-
@@ -2754,14 +2843,28 @@ show_modifytable_info(ModifyTableState *mtstate, List *ancestors,
204+
@@ -2754,14 +2844,28 @@ show_modifytable_info(ModifyTableState *mtstate, List *ancestors,
193205
doubleinsert_path;
194206
doubleother_path;
195207

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp