X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/846b489e99b9e5237dd230d19da419be88635677..3720032b9487e8cdd89eed9461ddeeac2c3cd764:/cookbooks/postgresql/templates/default/postgresql.conf.erb?ds=inline diff --git a/cookbooks/postgresql/templates/default/postgresql.conf.erb b/cookbooks/postgresql/templates/default/postgresql.conf.erb index 850fc1b3c..6022ea6c5 100644 --- a/cookbooks/postgresql/templates/default/postgresql.conf.erb +++ b/cookbooks/postgresql/templates/default/postgresql.conf.erb @@ -43,6 +43,10 @@ work_mem = <%= @settings[:work_mem] || @defaults[:work_mem] %> maintenance_work_mem = <%= @settings[:maintenance_work_mem] || @defaults[:maintenance_work_mem] %> max_stack_depth = <%= @settings[:max_stack_depth] || @defaults[:max_stack_depth] %> +# - Asynchronous Behavior - + +effective_io_concurrency = <%= @settings[:effective_io_concurrency] || @defaults[:effective_io_concurrency] %> + #------------------------------------------------------------------------------ # WRITE AHEAD LOG #------------------------------------------------------------------------------ @@ -98,8 +102,14 @@ random_page_cost = <%= @settings[:random_page_cost] || @defaults[:random_page_co cpu_tuple_cost = <%= @settings[:cpu_tuple_cost] || @defaults[:cpu_tuple_cost] %> effective_cache_size = <%= @settings[:effective_cache_size] || @defaults[:effective_cache_size] %> +# - Other Planner Options - + +<% if @version.to_f >= 12 -%> +jit = <%= @settings[:jit] || @defaults[:jit] %> +<% end -%> + #------------------------------------------------------------------------------ -# ERROR REPORTING AND LOGGING +# REPORTING AND LOGGING #------------------------------------------------------------------------------ # - When to Log - @@ -110,11 +120,21 @@ log_min_duration_statement = <%= @settings[:log_min_duration_statement] || @defa log_line_prefix = '%t ' +#------------------------------------------------------------------------------ +# RUNTIME STATISTICS +#------------------------------------------------------------------------------ + +# - Query/Index Statistics Collector - + +track_activity_query_size = <%= @settings[:track_activity_query_size] || @defaults[:track_activity_query_size] %> + #------------------------------------------------------------------------------ # AUTOVACUUM PARAMETERS #------------------------------------------------------------------------------ autovacuum_max_workers = <%= @settings[:autovacuum_max_workers] || @defaults[:autovacuum_max_workers] %> +autovacuum_vacuum_scale_factor = <%= @settings[:autovacuum_vacuum_scale_factor] || @defaults[:autovacuum_vacuum_scale_factor] %> +autovacuum_analyze_scale_factor = <%= @settings[:autovacuum_analyze_scale_factor] || @defaults[:autovacuum_analyze_scale_factor] %> #------------------------------------------------------------------------------ # CLIENT CONNECTION DEFAULTS