Doc: Improve documentation for pg_jit_available()
authorDavid Rowley <drowley@postgresql.org>
Tue, 28 Jul 2020 10:52:03 +0000 (22:52 +1200)
committerDavid Rowley <drowley@postgresql.org>
Tue, 28 Jul 2020 10:52:03 +0000 (22:52 +1200)
Per complaint from Scott Ribe. Based on wording suggestion from Tom Lane.

Discussion: https://postgr.es/m/1956E806-1468-4417-9A9D-235AE1D5FE1A@elevated-dev.com
Backpatch-through: 11, where pg_jit_available() was added

doc/src/sgml/func.sgml

index 959f6a1c2f25552f344942bc0f09e0fcf86970b7..f766c1bc67c14c96a3a6b2f2b4d74daa4db5df96 100644 (file)
@@ -21087,10 +21087,10 @@ SELECT * FROM pg_ls_dir('.') WITH ORDINALITY AS t(ls,n);
         <returnvalue>boolean</returnvalue>
        </para>
        <para>
-        Returns true if <acronym>JIT</acronym> compilation is available in
-        this session (see <xref linkend="jit"/>).
-        Returns false if <xref linkend="guc-jit"/> is set to false, or if the
-        feature was not enabled at compile time.
+        Returns true if a <acronym>JIT</acronym> compiler extension is
+        available (see <xref linkend="jit"/>) and the
+        <xref linkend="guc-jit"/> configuration parameter is set to
+        <literal>on</literal>.
        </para></entry>
       </row>