@@ -4155,7 +4155,6 @@ ANY <replaceable class="parameter">num_sync</replaceable> ( <replaceable class="
41554155 </listitem>
41564156 </varlistentry>
41574157
4158-
41594158 <varlistentry id="guc-jit-above-cost" xreflabel="jit_above_cost">
41604159 <term><varname>jit_above_cost</varname> (<type>floating point</type>)
41614160 <indexterm>
@@ -4164,48 +4163,49 @@ ANY <replaceable class="parameter">num_sync</replaceable> ( <replaceable class="
41644163 </term>
41654164 <listitem>
41664165 <para>
4167- Sets the planner's cutoff above which JIT compilation is used as part
4168- of query execution (see <xref linkend="jit"/>). Performing
4169- <acronym>JIT</acronym> costs time but can accelerate query execution.
4170-
4166+ Sets the query cost above which JIT compilation is activated, if
4167+ enabled (see <xref linkend="jit"/>).
4168+ Performing <acronym>JIT</acronym> costs planning time but can
4169+ accelerate query execution.
4170+ Setting this to <literal>-1</literal> disables JIT compilation.
41714171 The default is <literal>100000</literal>.
41724172 </para>
41734173 </listitem>
41744174 </varlistentry>
41754175
4176- <varlistentry id="guc-jit-optimize -above-cost" xreflabel="jit_optimize_above_cost ">
4177- <term><varname>jit_optimize_above_cost </varname> (<type>floating point</type>)
4176+ <varlistentry id="guc-jit-inline -above-cost" xreflabel="jit_inline_above_cost ">
4177+ <term><varname>jit_inline_above_cost </varname> (<type>floating point</type>)
41784178 <indexterm>
4179- <primary><varname>jit_optimize_above_cost </varname> configuration parameter</primary>
4179+ <primary><varname>jit_inline_above_cost </varname> configuration parameter</primary>
41804180 </indexterm>
41814181 </term>
41824182 <listitem>
41834183 <para>
4184- Sets the planner's cutoff above which JIT compiled programs (see <xref
4185- linkend="guc-jit-above-cost"/>) are optimized. Optimization initially
4186- takes time, but can improve execution speed. It is not meaningful to
4187- set this to a lower value than <xref linkend="guc-jit-above-cost"/ >.
4188-
4184+ Sets the query cost above which JIT compilation attempts to inline
4185+ functions and operators. Inlining adds planning time, but can
4186+ improve execution speed. It is not meaningful to set this to less
4187+ than <varname>jit_above_cost</varname >.
4188+ Setting this to <literal>-1</literal> disables inlining.
41894189 The default is <literal>500000</literal>.
41904190 </para>
41914191 </listitem>
41924192 </varlistentry>
41934193
4194- <varlistentry id="guc-jit-inline -above-cost" xreflabel="jit_inline_above_cost ">
4195- <term><varname>jit_inline_above_cost </varname> (<type>floating point</type>)
4194+ <varlistentry id="guc-jit-optimize -above-cost" xreflabel="jit_optimize_above_cost ">
4195+ <term><varname>jit_optimize_above_cost </varname> (<type>floating point</type>)
41964196 <indexterm>
4197- <primary><varname>jit_inline_above_cost </varname> configuration parameter</primary>
4197+ <primary><varname>jit_optimize_above_cost </varname> configuration parameter</primary>
41984198 </indexterm>
41994199 </term>
42004200 <listitem>
42014201 <para>
4202- Sets the planner's cutoff above which JIT compiled programs (see <xref
4203- linkend="guc-jit-above-cost"/>) attempt to inline functions and
4204- operators. Inlining initially takes time, but can improve execution
4205- speed. It is unlikely to be beneficial to set
4206- <varname>jit_inline_above_cost</varname> below
4207- <varname>jit_optimize_above_cost </varname>.
4208-
4202+ Sets the query cost above which JIT compilation applies expensive
4203+ optimizations. Such optimization adds planning time, but can improve
4204+ execution speed. It is not meaningful to set this to less
4205+ than <varname>jit_above_cost</varname>, and it is unlikely to be
4206+ beneficial to set it to more
4207+ than <varname>jit_inline_above_cost </varname>.
4208+ Setting this to <literal>-1</literal> disables expensive optimizations.
42094209 The default is <literal>500000</literal>.
42104210 </para>
42114211 </listitem>
@@ -4500,10 +4500,9 @@ SELECT * FROM parent WHERE key = 2400;
45004500 </term>
45014501 <listitem>
45024502 <para>
4503- Determines whether <acronym>JIT</acronym> may be used by
4503+ Determines whether <acronym>JIT</acronym> compilation may be used by
45044504 <productname>PostgreSQL</productname>, if available (see <xref
45054505 linkend="jit"/>).
4506-
45074506 The default is <literal>on</literal>.
45084507 </para>
45094508 </listitem>
@@ -7582,16 +7581,17 @@ SET XML OPTION { DOCUMENT | CONTENT };
75827581 </term>
75837582 <listitem>
75847583 <para>
7585- Determines which JIT provider (see <xref linkend="jit-extensibility"/>) is
7586- used. The built-in default is <literal>llvmjit</literal>.
7584+ This variable is the name of the JIT provider library to be used
7585+ (see <xref linkend="jit-pluggable"/>).
7586+ The default is <literal>llvmjit</literal>.
7587+ This parameter can only be set at server start.
75877588 </para>
7589+
75887590 <para>
7589- If set to a non-existent library <acronym>JIT</acronym> will not be
7591+ If set to a non-existent library, <acronym>JIT</acronym> will not be
75907592 available, but no error will be raised. This allows JIT support to be
75917593 installed separately from the main
75927594 <productname>PostgreSQL</productname> package.
7593-
7594- This parameter can only be set at server start.
75957595 </para>
75967596 </listitem>
75977597 </varlistentry>
@@ -8886,9 +8886,8 @@ LOG: CleanUpLock: deleting: lock(0xb7acd844) id(24688,24696,0,0,0,1)
88868886 <para>
88878887 If LLVM has the required functionality, register generated functions
88888888 with <productname>GDB</productname>. This makes debugging easier.
8889-
8890- The default setting is <literal>off</literal>, and can only be set at
8891- server start.
8889+ The default setting is <literal>off</literal>.
8890+ This parameter can only be set at server start.
88928891 </para>
88938892 </listitem>
88948893 </varlistentry>
@@ -8904,9 +8903,8 @@ LOG: CleanUpLock: deleting: lock(0xb7acd844) id(24688,24696,0,0,0,1)
89048903 Writes the generated <productname>LLVM</productname> IR out to the
89058904 file system, inside <xref linkend="guc-data-directory"/>. This is only
89068905 useful for working on the internals of the JIT implementation.
8907-
8908- The default setting is <literal>off</literal>, and it can only be
8909- changed by a superuser.
8906+ The default setting is <literal>off</literal>.
8907+ This parameter can only be changed by a superuser.
89108908 </para>
89118909 </listitem>
89128910 </varlistentry>
@@ -8919,8 +8917,8 @@ LOG: CleanUpLock: deleting: lock(0xb7acd844) id(24688,24696,0,0,0,1)
89198917 </term>
89208918 <listitem>
89218919 <para>
8922- Determines whether expressions are JIT compiled, subject to costing
8923- decisions (see <xref linkend="jit-decision"/>). The default is
8920+ Determines whether expressions are JIT compiled, when JIT compilation
8921+ is activated (see <xref linkend="jit-decision"/>). The default is
89248922 <literal>on</literal>.
89258923 </para>
89268924 </listitem>
@@ -8934,13 +8932,12 @@ LOG: CleanUpLock: deleting: lock(0xb7acd844) id(24688,24696,0,0,0,1)
89348932 </term>
89358933 <listitem>
89368934 <para>
8937- If LLVM has the required functionality, emit required data to allow
8935+ If LLVM has the required functionality, emit the data needed to allow
89388936 <productname>perf</productname> to profile functions generated by JIT.
89398937 This writes out files to <filename>$HOME/.debug/jit/</filename>; the
89408938 user is responsible for performing cleanup when desired.
8941-
8942- The default setting is <literal>off</literal>, and can only be set at
8943- server start.
8939+ The default setting is <literal>off</literal>.
8940+ This parameter can only be set at server start.
89448941 </para>
89458942 </listitem>
89468943 </varlistentry>
@@ -8953,9 +8950,9 @@ LOG: CleanUpLock: deleting: lock(0xb7acd844) id(24688,24696,0,0,0,1)
89538950 </term>
89548951 <listitem>
89558952 <para>
8956- Determines whether tuple deforming is JIT compiled, subject to costing
8957- decisions (see <xref linkend="jit-decision"/>). The default is
8958- <literal>on</literal>.
8953+ Determines whether tuple deforming is JIT compiled, when JIT
8954+ compilation is activated (see <xref linkend="jit-decision"/>).
8955+ The default is <literal>on</literal>.
89598956 </para>
89608957 </listitem>
89618958 </varlistentry>
0 commit comments