Re: is JIT available

From: David Rowley <dgrowleyml(at)gmail(dot)com>
To: Scott Ribe <scott_ribe(at)elevated-dev(dot)com>
Cc: Christoph Moench-Tegeder <cmt(at)burggraben(dot)net>, PostgreSQL General <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: is JIT available
Date: 2020-07-28 00:04:30
Message-ID: CAApHDvrPws1_vB=AAMgCodsJ0A+-E12rQEtNYewgQONJyO9=uA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, 28 Jul 2020 at 04:18, Scott Ribe <scott_ribe(at)elevated-dev(dot)com> wrote:
>
> > On Jul 25, 2020, at 8:02 AM, Christoph Moench-Tegeder <cmt(at)burggraben(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ayub M 2020-07-28 00:08:36 postgres stats on the new primary
Previous Message David Rowley 2020-07-27 23:54:53 Re: bad JIT decision