From: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
To: Justin Pryzby <pryzby@telsasoft.com>
To: David Rowley <dgrowleyml@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers@postgresql.org, Andres Freund <andres@anarazel.de>
Subject: Re: jit and explain nontext
Date: Fri, 20 Nov 2020 16:56:38 +0100
Message-ID: <a56f853c-e671-c4b1-7e0e-a1f0a18621e4@enterprisedb.com> (raw)
In-Reply-To: <20201017192134.GD9241@telsasoft.com>
References: <20201014193859.GS9241@telsasoft.com>
<CAApHDvpPt=iN=f5gHQSCA073mp5KO46gsEZFgTWc4xbzKshb9g@mail.gmail.com>
<3643530.1602724513@sss.pgh.pa.us>
<CAApHDvqK2HAm-BWxgo7=7GG5xERuECwgny+Sxh3iLfXmhR_yBQ@mail.gmail.com>
<20201015014326.GU9241@telsasoft.com>
<CAApHDvozf41o7bUyLL42LWwAjqjRuDToeWy-S5jwR4BieM7SYA@mail.gmail.com>
<20201017192134.GD9241@telsasoft.com>
On 2020-10-17 21:21, Justin Pryzby wrote:
> Added at:https://commitfest.postgresql.org/30/2766/
>
> diff --git a/src/backend/commands/explain.c b/src/backend/commands/explain.c
> index 41317f1837..7345971507 100644
> --- a/src/backend/commands/explain.c
> +++ b/src/backend/commands/explain.c
> @@ -839,7 +839,8 @@ 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)
> + if (!ji || (ji->created_functions == 0 &&
> + es->format == EXPLAIN_FORMAT_TEXT))
> return;
>
> /* calculate total time */
Can you show an output example of where this patch makes a difference?
Just from reading the description, I would expect some kind of
additional JIT-related output from something like
EXPLAIN (FORMAT YAML) SELECT 1;
but I don't see anything.
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: pgsql-hackers@postgresql.org
Cc: peter.eisentraut@enterprisedb.com, pryzby@telsasoft.com, dgrowleyml@gmail.com, tgl@sss.pgh.pa.us, andres@anarazel.de
Subject: Re: jit and explain nontext
In-Reply-To: <a56f853c-e671-c4b1-7e0e-a1f0a18621e4@enterprisedb.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox