Re: is JIT available - Mailing list pgsql-general

From David Rowley
Subject Re: is JIT available
Date
Msg-id CAApHDvrPws1_vB=AAMgCodsJ0A+-E12rQEtNYewgQONJyO9=uA@mail.gmail.com
Whole thread Raw
In response to Re: is JIT available  (Scott Ribe <scott_ribe@elevated-dev.com>)
Responses Re: is JIT available
Re: is JIT available
List pgsql-general
On Tue, 28 Jul 2020 at 04:18, Scott Ribe <scott_ribe@elevated-dev.com> wrote:
>
> > On Jul 25, 2020, at 8:02 AM, Christoph Moench-Tegeder <cmt@burggraben.net> wrote:
> > pg_jit_available()  boolean  is JIT compilation available in this session
> >
> > https://www.postgresql.org/docs/12/functions-info.html
>
> Thanks, that seems to be exactly what I was looking for.
>
> Even though the documentation is not clear, it does return false when jit = on but PG was not compiled with JIT.

If it's not clear we can certainly change it.

I looked at the manual page. It says:

"is JIT compilation available in this session (see Chapter 31)?
Returns false if jit is set to false."

Maybe this would be better?

"returns true if jit is enabled and JIT compilation is available in
this session (see Chapter 31)."

Open to other suggestions.

David



pgsql-general by date:

Previous
From: David Rowley
Date:
Subject: Re: bad JIT decision
Next
From: Ayub M
Date:
Subject: postgres stats on the new primary