public inbox for [email protected]
help / color / mirror / Atom feedFrom: Justin Pryzby <[email protected]>
Subject: [PATCH v2] explain: show JIT details in non-text format, even if zero
Date: Sat, 17 Oct 2020 14:10:11 -0500
---
src/backend/commands/explain.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/backend/commands/explain.c b/src/backend/commands/explain.c
index 43f9b01e83..89caa76801 100644
--- a/src/backend/commands/explain.c
+++ b/src/backend/commands/explain.c
@@ -838,8 +838,9 @@ ExplainPrintJIT(ExplainState *es, int jit_flags, JitInstrumentation *ji)
{
instr_time total_time;
- /* don't print information if no JITing happened */
- if (!ji || ji->created_functions == 0)
+ /* don't print information if JITing wasn't done at planning time */
+ if (!ji || (ji->created_functions == 0 &&
+ es->format == EXPLAIN_FORMAT_TEXT))
return;
/* calculate total time */
--
2.17.0
--9jxsPFA5p3P2qPhR--
view thread (18+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected]
Subject: Re: [PATCH v2] explain: show JIT details in non-text format, even if zero
In-Reply-To: <no-message-id-1864881@localhost>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox