Re: JIT doing duplicative optimization? - Mailing list pgsql-hackers

From Andres Freund
Subject Re: JIT doing duplicative optimization?
Date
Msg-id 20211115171827.psvegzaloy77cf7z@alap3.anarazel.de
Whole thread Raw
In response to Re: JIT doing duplicative optimization?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Hi,

On 2021-11-14 18:46:34 -0500, Tom Lane wrote:
> BTW, I realized while working on this that I have little idea what the
> "Functions:" count is.  Nor does our documentation explain that (or any
> other of these numbers), at least not anywhere I could find.  That seems
> like a pretty serious documentation fail.

It's literally the number of functions created in the JIT code. That could be
functions for evaluating one expression, or functions for deforming tuples of
one type of tupledesc. It's the simplest measure of "amount of JITed stuff" I
could find. I'd proposed a more detailed explain option where we'd optionally
print details about what exactly is JITed where a while back, but there were
some explain output format challenges...


> If these numbers aren't important enough to explain in the docs, why are we
> printing them at all?

Afaict we don't have detailed docs for EXPLAIN output in general?

Greetings,

Andres Freund



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: JIT doing duplicative optimization?
Next
From: Tom Lane
Date:
Subject: Re: Time to drop plpython2?