mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
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
This commit is contained in:
@ -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;
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user