Re: is JIT available

Scott Ribe <scott_ribe@elevated-dev.com>

From: Scott Ribe <scott_ribe@elevated-dev.com>
To: Christoph Moench-Tegeder <cmt@burggraben.net>
Cc: PostgreSQL General <pgsql-general@lists.postgresql.org>
Date: 2020-07-27T16:18:33Z
Lists: pgsql-general
> On Jul 25, 2020, at 8:02 AM, Christoph Moench-Tegeder <cmt@burggraben.net> wrote:
> 
> ## Scott Ribe (scott_ribe@elevated-dev.com):
> 
>> So JIT is enabled in your conf, how can you tell from within a client
>> session whether it's actually available (PG compiled with it and
>> compiler available)?
> 
> 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.




Commits

  1. Doc: Improve documentation for pg_jit_available()