mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-15 09:22:55 +00:00
Add local_file_cache GUC
This commit is contained in:
@@ -381,15 +381,16 @@ lfc_init(void)
|
||||
if (!process_shared_preload_libraries_in_progress)
|
||||
elog(ERROR, "Neon module should be loaded via shared_preload_libraries");
|
||||
|
||||
DefineCustomIntVariable("neon.local_file_cache",
|
||||
"Enable ort disable local file cache",
|
||||
NULL,
|
||||
&lfc_enabled,
|
||||
true, /* enabled by default */
|
||||
PGC_POSTMASTER,
|
||||
NULL,
|
||||
lfc_change_state,
|
||||
NULL);
|
||||
DefineCustomBoolVariable("neon.local_file_cache",
|
||||
"Enable ort disable local file cache",
|
||||
NULL,
|
||||
&lfc_enabled,
|
||||
true, /* enabled by default */
|
||||
PGC_POSTMASTER,
|
||||
0,
|
||||
NULL,
|
||||
lfc_change_state,
|
||||
NULL);
|
||||
|
||||
DefineCustomIntVariable("neon.max_file_cache_size",
|
||||
"Maximal size of Neon local file cache",
|
||||
|
||||
Reference in New Issue
Block a user