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