diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2018-09-15 17:24:35 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2018-09-15 17:24:35 -0400 |
commit | 0fdadfb0192935e0f8bec7fa5ec9dbb470d6d587 (patch) | |
tree | 251b6e5d804cf0fdd0e48fef5361bcdb11ee8af9 /src | |
parent | f13e2d1cec9b786405d649c72a4aa29fadcea617 (diff) | |
download | postgresql-0fdadfb0192935e0f8bec7fa5ec9dbb470d6d587.tar.gz postgresql-0fdadfb0192935e0f8bec7fa5ec9dbb470d6d587.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.c | 4 | ||||
-rw-r--r-- | src/backend/utils/misc/guc.c | 4 | ||||
-rw-r--r-- | src/backend/utils/misc/postgresql.conf.sample | 15 |
3 files changed, 12 insertions, 11 deletions
diff --git a/src/backend/jit/jit.c b/src/backend/jit/jit.c index c1703094db7..9e0bbf856e6 100644 --- a/src/backend/jit/jit.c +++ b/src/backend/jit/jit.c @@ -32,8 +32,8 @@ /* GUCs */ -bool jit_enabled = true; -char *jit_provider = "llvmjit"; +bool jit_enabled = false; +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 2335e2a04e2..6264b7fbd04 100644 --- a/src/backend/utils/misc/guc.c +++ b/src/backend/utils/misc/guc.c @@ -1752,7 +1752,7 @@ static struct config_bool ConfigureNamesBool[] = NULL }, &jit_enabled, - true, + false, NULL, NULL, NULL }, @@ -3872,7 +3872,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 9e39baf4668..163e3879b2e 100644 --- a/src/backend/utils/misc/postgresql.conf.sample +++ b/src/backend/utils/misc/postgresql.conf.sample @@ -321,11 +321,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 @@ -351,6 +352,7 @@ #join_collapse_limit = 8 # 1 disables collapsing of explicit # JOIN clauses #force_parallel_mode = off +#jit = off # allow JIT compilation #------------------------------------------------------------------------------ @@ -615,13 +617,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 |