aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2018-09-15 17:24:35 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2018-09-15 17:24:35 -0400
commit8f32bacc006692e63f137924d5849b3cb9f2d4d3 (patch)
treef164bbf9e868955d8e3c22850e16c03c77bbea04 /src
parent1f4a920b7309499d2d0c4ceda5e6356e10bc51da (diff)
downloadpostgresql-8f32bacc006692e63f137924d5849b3cb9f2d4d3.tar.gz
postgresql-8f32bacc006692e63f137924d5849b3cb9f2d4d3.zip
In v11, disable JIT by default (it's still enabled by default in HEAD).
Per discussion, JIT isn't quite mature enough to ship enabled-by-default. I failed to resist the temptation to do a bunch of copy-editing on the related documentation. Also, clean up some inconsistencies in which section of config.sgml the JIT GUCs are documented in vs. what guc.c and postgresql.config.sample had. Discussion: https://postgr.es/m/20180914222657.mw25esrzbcnu6qlu@alap3.anarazel.de
Diffstat (limited to 'src')
-rw-r--r--src/backend/jit/jit.c2
-rw-r--r--src/backend/utils/misc/guc.c2
-rw-r--r--src/backend/utils/misc/postgresql.conf.sample15
3 files changed, 10 insertions, 9 deletions
diff --git a/src/backend/jit/jit.c b/src/backend/jit/jit.c
index c1703094db7..7d3883d3bf4 100644
--- a/src/backend/jit/jit.c
+++ b/src/backend/jit/jit.c
@@ -33,7 +33,7 @@
/* GUCs */
bool jit_enabled = true;
-char *jit_provider = "llvmjit";
+char *jit_provider = NULL;
bool jit_debugging_support = false;
bool jit_dump_bitcode = false;
bool jit_expressions = true;
diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c
index 0625eff2191..77662aff7fa 100644
--- a/src/backend/utils/misc/guc.c
+++ b/src/backend/utils/misc/guc.c
@@ -3895,7 +3895,7 @@ static struct config_string ConfigureNamesString[] =
},
{
- {"jit_provider", PGC_POSTMASTER, FILE_LOCATIONS,
+ {"jit_provider", PGC_POSTMASTER, CLIENT_CONN_PRELOAD,
gettext_noop("JIT provider to use."),
NULL,
GUC_SUPERUSER_ONLY
diff --git a/src/backend/utils/misc/postgresql.conf.sample b/src/backend/utils/misc/postgresql.conf.sample
index 7486d20a34f..4e61bc6521f 100644
--- a/src/backend/utils/misc/postgresql.conf.sample
+++ b/src/backend/utils/misc/postgresql.conf.sample
@@ -320,11 +320,12 @@
#parallel_setup_cost = 1000.0 # same scale as above
#jit_above_cost = 100000 # perform JIT compilation if available
- # and query more expensive, -1 disables
-#jit_optimize_above_cost = 500000 # optimize JITed functions if query is
- # more expensive, -1 disables
-#jit_inline_above_cost = 500000 # attempt to inline operators and
- # functions if query is more expensive,
+ # and query more expensive than this;
+ # -1 disables
+#jit_inline_above_cost = 500000 # inline small functions if query is
+ # more expensive than this; -1 disables
+#jit_optimize_above_cost = 500000 # use expensive JIT optimizations if
+ # query is more expensive than this;
# -1 disables
#min_parallel_table_scan_size = 8MB
@@ -350,6 +351,7 @@
#join_collapse_limit = 8 # 1 disables collapsing of explicit
# JOIN clauses
#force_parallel_mode = off
+#jit = on # allow JIT compilation
#plan_cache_mode = auto # auto, force_generic_plan or
# force_custom_plan
@@ -616,13 +618,12 @@
#shared_preload_libraries = '' # (change requires restart)
#local_preload_libraries = ''
#session_preload_libraries = ''
+#jit_provider = 'llvmjit' # JIT library to use
# - Other Defaults -
#dynamic_library_path = '$libdir'
-#jit = on # allow JIT compilation
-#jit_provider = 'llvmjit' # JIT implementation to use
#------------------------------------------------------------------------------
# LOCK MANAGEMENT