]> git.openstreetmap.org Git - chef.git/commitdiff
Put postgres stats directory on a tmpfs
authorTom Hughes <tom@compton.nu>
Wed, 10 Feb 2021 22:19:26 +0000 (22:19 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 10 Feb 2021 22:19:26 +0000 (22:19 +0000)
cookbooks/postgresql/templates/default/postgresql.conf.erb

index 6b38d55d62b6f1cacf7111acf9aa35823cf512ad..7ac5bb119eea6d722f9cad30f03114534c61eaee 100644 (file)
@@ -138,6 +138,7 @@ log_line_prefix = '%t '
 # - Query/Index Statistics Collector -
 
 track_activity_query_size = <%= @settings[:track_activity_query_size] || @defaults[:track_activity_query_size] %>
 # - Query/Index Statistics Collector -
 
 track_activity_query_size = <%= @settings[:track_activity_query_size] || @defaults[:track_activity_query_size] %>
+stats_temp_directory = '/run/postgresql/<%= @version %>-main.pg_stat_tmp'
 
 #------------------------------------------------------------------------------
 # AUTOVACUUM PARAMETERS
 
 #------------------------------------------------------------------------------
 # AUTOVACUUM PARAMETERS