summaryrefslogtreecommitdiff
path: root/contrib/auto_explain
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/auto_explain')
-rw-r--r--contrib/auto_explain/auto_explain.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/auto_explain/auto_explain.c b/contrib/auto_explain/auto_explain.c
index 76f293cbf4..0c0eb3fb9e 100644
--- a/contrib/auto_explain/auto_explain.c
+++ b/contrib/auto_explain/auto_explain.c
@@ -16,6 +16,7 @@
#include "commands/explain.h"
#include "executor/instrument.h"
+#include "jit/jit.h"
#include "utils/guc.h"
PG_MODULE_MAGIC;
@@ -361,6 +362,9 @@ explain_ExecutorEnd(QueryDesc *queryDesc)
ExplainPrintPlan(es, queryDesc);
if (es->analyze && auto_explain_log_triggers)
ExplainPrintTriggers(es, queryDesc);
+ if (queryDesc->estate->es_jit && es->costs &&
+ queryDesc->estate->es_jit->created_functions > 0)
+ ExplainPrintJIT(es, queryDesc);
ExplainEndOutput(es);
/* Remove last line break */